Consolidated Rasdial .bat

  • Thread starter Thread starter broadquest
  • Start date Start date
  • Replies Replies 2
  • Views Views 3,521

broadquest

Newbie
Messages
6
Location
NA
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? 🙄

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. 🙄
 
i guess this is just 4 night plan users....m pretty new here so just let me hav it clear
 

Top