Consolidated Rasdial .bat

broadquest

Newbie
[OP]
Sep 20, 2006
6
0
Guys, how would you make a consolidated .bat file for disconnection & reconnection for renewing IP

contents of single .bat file(say renewIP.bat)
rasdial nameofconnection login passwd

rasdial /disconnect nameofconnection

Now this single file cud b scheduled to run twice say @ 12:04a and then @ 7:55a

How about that? :rolleyes:

wait 5 secs...
while posting this I did it myself.
wait ~17 min...

Sorry about all the above text, I thnk it adds drama. :lol: Im ckecking this & it works fine.
here it is:

make a .bat file(RAS_newIP.bat) with contents:
below this line-
rasdial nameofconnection login passwd
SLEEP 1
rasdial /disconnect nameofconnection
-above this line

you need a file DOS command file "sleep.exe" here DOS SLEEP file
This delays the reconnection to allow the mtnl server to work.
here I put a 1 sec delay(ample for me)

Put the sleep.exe in same folder as the .bat file. thats it.
Now only needs to be automated twice @ 12.03a & @ 7.55a
Tell me if this is worth it. :rolleyes:
 

imalok

Newbie
Aug 29, 2006
3
0
i guess this is just 4 night plan users....m pretty new here so just let me hav it clear
 

seshu

Listener
Regulars
Mar 31, 2006
1,254
7
^ yes , this topic is to help night plan users ...