gsbaran Posted November 28, 2012 Share Posted November 28, 2012 arkdaşlar merhaba başınızı ağrıttığım için özür dilerim isteyim benim için büyük ama ufak bişey olsa gerek siz değerli bilgili arkadaşlarım için ben xp üzerinden ufacık bat dosyası oluşturmak istiyorum 2 tane olması lazım tahminimce birine bastığımda tcp ip üzerindeki herşeyi otomatiğe alsın diğerine bastığımda ise sadece ip adresinde 192.168.0.111 alt ağ maskesinde ise 255.0.0.0 yazsın diğerleri boşkalsada olur böyle bi bat dosyası yapabilirmiyim teşekkürler Quote Link to comment Share on other sites More sharing options...
gsbaran Posted November 28, 2012 Author Share Posted November 28, 2012 @rem echo OFF rem This file runs in Command Mode. Use at your own risk. rem The name in the inverted commas must match your connection name set lan_name="1" rem define the first part of the network addresses here rem first set the subnet address for the ip address and default gateway set ipsubnet=192.168.0 rem next set the subnet address for the DNS servers set dnssubnet=8.8.8 rem Set each of IP address, Subnet mask and Default gateway set lan_ip=%ipsubnet%.100 set sub_net_mask=255.0.0.0 rem set the ip address @netsh interface ip set address name=%lan_name% source=static addr=%lan_ip% mask=%sub_net_mask% rem set the preferred DNS @netsh interface ip add dns name=%lan_name% addr=%sec_dns_addr% index=2 birisi bu kaldı otomatik leştirme Quote Link to comment Share on other sites More sharing options...
gsbaran Posted November 28, 2012 Author Share Posted November 28, 2012 netsh interface ip set address "1" dhcp ipconfig /flushdns netsh interface ip set dns "1" dhcp ipconfig /flushdns buda sıfırlama olcak herkese teşkkürler demek araştırınca oluyomuşözür dilerim unutmadan söyliyim "1" bunun yerine yerel ağ bağlantısı yazabilirsiniz yada ismi neyse onu yazın 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.