hdr... Posted September 26, 2012 Share Posted September 26, 2012 arkadaşlar soru başlıktaki gibidir, bat dosyası ile Varsayılan Ağ Geçidini değiştirmek istiyorum. Yardımcı olabilirmisiniz , teşekkürler... Quote Link to comment Share on other sites More sharing options...
hdr... Posted September 27, 2012 Author Share Posted September 27, 2012 yardımcı olabilecek kimse yok mu ? Quote Link to comment Share on other sites More sharing options...
MAKINCI Posted September 28, 2012 Share Posted September 28, 2012 [b]Yanlış anlamadıysam bunu soruyorsun, not defterine yaz filanca.bat olarak kaydet...[/b] [CODE] @echo off echo Eski Ip Siliniyor ipconfig /flushdns ipconfig /release echo Ip Adresiniz Yenileniyor ipconfig /renew exit [/CODE] Quote Link to comment Share on other sites More sharing options...
HalilYanar Posted September 28, 2012 Share Posted September 28, 2012 Bence şöylede olabilir ; [color=#006666]@echo[/color][color=#000000] off echo [/color][color=#800080]Ağ geçidiniz değiştirmek üzeresiniz devam etmek istiyorsanız;[/color][color=#000000] pause echo [/color][color=#660066]Eski[/color][color=#000000] [/color][color=#660066]Ip[/color][color=#000000] [/color][color=#660066]Siliniyor[/color] [color=#000000]ipconfig [/color][color=#666600]/[/color][color=#000000]flushdns ipconfig [/color][color=#666600]/[/color][color=#000000]release echo [/color][color=#660066]Ip[/color][color=#000000] [/color][color=#660066]Adresiniz[/color][color=#000000] [/color][color=#660066]Yenileniyor[/color] [color=#000000]ipconfig [/color][color=#666600]/[/color][color=#000000]renew echo [/color][color=#800080]Ip Adresiniz Yenilendi...[/color][color=#000000] pause [/color][color=#000088]exit[/color] Quote Link to comment Share on other sites More sharing options...
hdr... Posted October 9, 2012 Author Share Posted October 9, 2012 [quote name='MAKINCI' timestamp='1348862883' post='1244208'] [b]Yanlış anlamadıysam bunu soruyorsun, not defterine yaz filanca.bat olarak kaydet...[/b] [CODE] @echo off echo Eski Ip Siliniyor ipconfig /flushdns ipconfig /release echo Ip Adresiniz Yenileniyor ipconfig /renew exit [/CODE] [/quote] [quote name='HalilYanar' timestamp='1348863766' post='1244210'] Bence şöylede olabilir ; [color=#006666]@echo[/color][color=#000000] off echo [/color][color=#800080]Ağ geçidiniz değiştirmek üzeresiniz devam etmek istiyorsanız;[/color] [color=#000000]pause echo [/color][color=#660066]Eski[/color][color=#000000] [/color][color=#660066]Ip[/color][color=#000000] [/color][color=#660066]Siliniyor[/color] [color=#000000]ipconfig [/color][color=#666600]/[/color][color=#000000]flushdns ipconfig [/color][color=#666600]/[/color][color=#000000]release echo [/color][color=#660066]Ip[/color][color=#000000] [/color][color=#660066]Adresiniz[/color][color=#000000] [/color][color=#660066]Yenileniyor[/color] [color=#000000]ipconfig [/color][color=#666600]/[/color][color=#000000]renew echo [/color][color=#800080]Ip Adresiniz Yenilendi...[/color] [color=#000000]pause[/color] [color=#000088]exit[/color] [/quote] ben varsayılan ağ gecidini el ile bat dosyasına girmek istiyorum. yani bat dosyasını kullandığımda benim belirlediğim ağa geçsin istiyorum. Quote Link to comment Share on other sites More sharing options...
drcslm Posted October 9, 2012 Share Posted October 9, 2012 senin istediğin şeyi ben daha önce yaptım ama kodları bulamıyorum tam olarak istediğin şey var bende bulursam ekleyecğim Quote Link to comment Share on other sites More sharing options...
drcslm Posted October 9, 2012 Share Posted October 9, 2012 netsh interface ip set address name="a" static 192.168.1.12 255.255.255.0 192.168.1.100 1 aynen bu şekilde değiştiriyor bunu bat dosyası olarak kaydet ve kullan name kısmı ağ geçidi ismi olması lazım 192.168.1.12 makine ip adresi 255............... netmask 192.168.1.100 ağ geçidi adresi istediğin ağ geçidi hangisi ise onu yap sondaki 1 kodun çalışması için geçerli olan sayı idi yanlış hatırlamıyorsam kolay gelsin Quote Link to comment Share on other sites More sharing options...
tnc_tr Posted October 9, 2012 Share Posted October 9, 2012 [font="'Segoe UI"][size="2"][color="#000000"]Dos ekranından ağ bağdaştırıcı bilgisi girme[/color][/size][/font] [color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]netsh interface ip set address name="[/size][/font][/color]Yerel Ağ Bağlantısı[color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]" static 192.168.0.10 255.255.255.0 192.168.0.1 1[/size][/font][/color] Yerel Ağ Bağlantısı[color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3] = Ağ bağdaştırıcın ismi[/size][/font][/color] [color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]192.168.0.10 = Almak istediğin ip[/size][/font][/color] [color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]255.255.255.0 = Alt ağ maskesi[/size][/font][/color] [color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]192.168.0.1 = Ağ geçidin[/size][/font][/color] [color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]sondaki 1 = metric değeri (öncelik)[/size][/font][/color] [color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]DNS değiştirme[/size][/font][/color] [color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]1.dns adresini değişme[/size][/font][/color] [color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]netsh interface ip set dns name="[/size][/font][/color]Yerel Ağ Bağlantısı[color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3]" static 208.67.222.222[/size][/font][/color][color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3] 208.67.222.222 ==> girmek isteğin dns[/size][/font][/color][color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3] 2. dns adresini değişme[/size][/font][/color][color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3] netsh interface ip add dns name="Yerel Ağ Bağlantısı" 208.67.220.220 index=2[/size][/font][/color][color=#000000][font='Segoe UI', Verdana, Arial, Helvetica][size=3] bunlardan sonra [font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]ipconfig [/background][/size][/font][color=#666600][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]/[/background][/size][/font][/color][font=helvetica, arial, sans-serif][size=3][background=rgb(247, 247, 247)]flushdns yapman gerekli[/background][/size][/font][/size][/font][/color] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.