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

@  agyat : (23 May 2013 - 01:23 AM) Wow! Mr. Sb Back Home.
@  OpaQue : (23 May 2013 - 12:44 AM) Ting
@  OpaQue : (24 April 2013 - 02:44 PM) I guess, Time to run Mycent script.
@  OpaQue : (24 April 2013 - 02:43 PM) wow.. not much spam. except habatt posting lot of links.. :P
@  yordan : (23 April 2013 - 01:04 PM) You're welcome, agyat. Nice to have been helpful. Second lesson: try full words, "you" instead of "EW".
@  agyat : (23 April 2013 - 05:03 AM) @YORDAN: tHANK EW FOR YOUR FIRST LESSON.   :D
@  yordan : (22 April 2013 - 09:43 PM) @agyat : "why don't you help me", or "please help me", or "please teach us"
@  yordan : (22 April 2013 - 09:42 PM) welcome back, velma
@  velma : (22 April 2013 - 07:51 AM) **yawns** Good to be back, wonder what is going on here :)
@  agyat : (22 April 2013 - 03:50 AM) Oh! so, why don't help me learn english..
@  yordan : (21 April 2013 - 08:38 PM) The goal mentioned by shiu : "learning english, learning computer"
@  agyat : (21 April 2013 - 06:31 PM) WHAT GOAL?
@  yordan : (20 April 2013 - 10:39 AM) yes, that's our goal. simultaneouly learning English and teaching/learning computer using.
@  shiyu : (20 April 2013 - 07:30 AM) learning english,learning computer
@  yordan : (19 April 2013 - 01:11 PM) Oh, I see, it's just a trick in order to force people looking at your texte. Somehow smart, maybe.
@  agyat : (19 April 2013 - 02:54 AM) And of course I know it is not SEO friendly.
@  agyat : (19 April 2013 - 02:52 AM) There may be two possible answers for that ....


1) Shout was posted using mobile keypad.

2) To force people read content carefully and/or with more concentration.
@  agyat : (19 April 2013 - 02:49 AM) There may be two possible answers for that ....
@  yordan : (18 April 2013 - 09:35 PM) however, why this mixing of capital letters in the middle of your text?
@  agyat : (18 April 2013 - 11:10 AM) false feelings.

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)