Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  yordan : (16 June 2013 - 05:41 PM) You're Welcome, Agyat!
@  agyat : (16 June 2013 - 07:38 AM) Thanks Yordan...
@  velma : (16 June 2013 - 12:06 AM) I Have Asked Opa To Check For A Backup.. He'll Let Me Know Soon :)
@  velma : (16 June 2013 - 12:05 AM) T_T It Seems That Someone Has Deleted That Topic Since I Found The Url Of The Topic But It Gives Me An Error
@  yordan : (15 June 2013 - 10:31 PM) @velma : It's A Tuto On How To Create A Login Program.
@  yordan : (15 June 2013 - 10:31 PM) Happy Birthday To Youuuuuu Agyat!
@  yordan : (15 June 2013 - 10:31 PM) Ba$
@  agyat : (15 June 2013 - 04:41 PM) :(
@  agyat : (15 June 2013 - 04:41 PM) Where The Hall I Were? 15Th Is Almost At End And No-One Wished Me "happy Birthday"!!!
@  velma : (14 June 2013 - 10:39 AM) Which Tutorial Is He Searching For?
@  velma : (14 June 2013 - 10:38 AM) Which Tutorial Is He Searching For?
@  yordan : (14 June 2013 - 07:47 AM) Ok, Have A Look Tomorrow.
@  yordan : (13 June 2013 - 03:19 PM) @velma, Can You Have A Look At Feelay's Problem? Seems That His Tutorial Is Not Searchable Today.
@  Feelay : (13 June 2013 - 08:11 AM) Oh, Haha
@  velma : (12 June 2013 - 05:39 PM) T_T Lately My Levels Of Procrastination..... **sigh**
@  velma : (12 June 2013 - 05:38 PM) I'll Do It Later
@  velma : (12 June 2013 - 05:38 PM) Procrastinators.. People Who Keep Saying "i'll Do This In A Bit"
@  Feelay : (12 June 2013 - 02:05 PM) Deal Punishments To What?
@  velma : (12 June 2013 - 01:27 PM) T_T We Should Deal Punishments To Procrastinators... Especially Me
@  Feelay : (12 June 2013 - 12:06 PM) As Well As Making It More Secure.

Replying to Switch Network Settings With Batch Files


Post Options

    • Can't make it out? Click here to generate a new image

  or Cancel


Topic Summary

Posted 18 March 2010 - 07:01 AM

simply amazing man...U solved my problem,was struggling to do this for long...Thanx...Take care,keep up the good work

-reply by Faisal

Posted 09 February 2010 - 09:28 AM

Thanks a lotSwitch Network Settings With Batch Files

Thanks a lot curare..

But it was the solution of Quang that saved me. I guess they changed the parameters on Vista.

 So thanks to you both,

 Cheers

Keywords: save ip address different network

Posted 15 July 2009 - 09:57 AM

Alternate ScriptSwitch Network Settings With Batch FilesI couldn't quite get these working, however I modded a couple of scripts together and the script below works for me on Vista.@ECHO OFFSet varNet="Wireless Network Connection"Set varip=192.168.0.1Set varsm=255.255.255.0Set vargw=192.168.0.2Set vardns1=192.168.0.3Set vardns2=192.168.0.4ECHO Setting IP Address, Subnet Mask and GatewayNetsh int ip set address name = %varNet% source = static addr = %varip% mask = %varsm% gateway = %vargw% gwmetric = 1ECHO Setting Primary DNSNetsh int ip set dns name = %varNet% source = static addr = %vardns1%ECHO Setting Secondary DNSNetsh int ip add dns name = %varNet% addr = %vardns2%-reply by Noot

 


Posted 19 July 2009 - 06:18 PM

What settings?Switch Network Settings With Batch Files

I got the right command in the batch file but it doesn't change my IP. Do I have to have a static IP address to make this work? My friend said I won't have to change it. When I do ipconfig after the batch file launch EVERYTHING is still the same, how?


Posted 26 January 2009 - 10:06 AM

Excellent post.

I'm a little lazy, and found some freeware - "NetSetMan". Works fine for me, and can hold up to 6 different network profiles.

Thanks to all.

- Andy


Posted 28 June 2008 - 02:45 PM

Thanks
Switch Network Settings With Batch Files

I'm using vista but it didn't work as mentioned above

I tried

Set address name="Wireless Network Connection" static 192.168.0.100 255.255.255.0 192.168.0.1 1

And now it works perfectly!

-reply by Quang Tran

Posted 01 July 2008 - 11:53 AM

how to add the one more ip address to a batch file
Switch Network Settings With Batch Files

Hi,


Iam Rajkumar working in crystal granite marble pvt ltd.


Here our lan ip is 192.168.0.1 subnetmask is 255.255.255.0

And internet ip is 10.7.192.81 subnetmask is 255.255.255.240


I want to add the one moreip address to the above mentioned batchfile


I can add the one more dns also but iam not able to add the ip address


Please help me in this scenario



Thnaks and Regards,
Rajkumar.S

-reply by RAJKUMAR

Posted 07 June 2008 - 09:43 AM

Vista settings
Switch Network Settings With Batch Files

Emmy- that's because you need to type the following into a batch file:

@ECHO OFF

Set varip=192.168.0.99
Set varsm=255.255.255.0
Set vargw=192.168.0.100
Set vardns1=195.131.131.11
Set vardns2=195.131.131.12

ECHO Setting IP to static
Netsh int ipv4 set address name = "LAN-verbinding 4" source = static address = %varip% mask = %varsm%

ECHO Setting IP Address and Subnet Mask
Netsh int ipv4 set address name = "LAN-verbinding 4" address = %varip% mask = %varsm% gateway = %vargw% gwmetric = 1

ECHO Setting Primary DNS
Netsh int ip set dns name = "LAN-verbinding 4" source = static addr = %vardns1%

ECHO Setting Secondary DNS
Netsh int ip add dns name = "LAN-verbinding 4" addr = %vardns2%

ECHO Here are the new settings for %computername%:
Netsh int ip show config

Pause

-reply by Razzor

Posted 10 June 2008 - 12:10 PM

Vista problems
Switch Network Settings With Batch Files

Hiya,

Have you tried running it by right clicking and using 'run as administrator' instead.

It worked for me as I was getting the:

This command needs to be elevated

HTH

-reply by Andy Holland

Posted 03 June 2008 - 04:42 AM

Thanks
Switch Network Settings With Batch Files

Great stuff. Keep up the good work



-reply by Pyous

Review the complete topic (launches new window)