Trying to reconnect your internet connection with some batch script or command line code then , yes you have a saviour the RASDIAL utility, which can easily connect or disconnect your Dial up modem or a PPPOE broadband connection. It works in both XP and Vista
just go to your command line or inside your batch script add these
Suppose you have a Internet connection named BSNL with username- vivekz and password- secret123 .
Now to Disconnect from it use,
rasdial BSNL /disconnect
To connect to Internet through BSNL connection type in
rasdial BSNL vivekz secret123
ie. rasdial <connection name> <username> <password>
Hope that helped you out as I was stuck with the same issue and I was using the rather general purpose nircmd utility for it .
Last 5 posts in Tips and Tricks
- Google Webmaster Tools Offers Notifications for Hacking and Abuse - March 3rd, 2010
- How to Set Up Facebook Chat in Pidgin - February 12th, 2010
- How to Access and Add Facebook Chat from Any Desktop IM Client - February 12th, 2010
- Free Effective and Simple Image Size and Format Converter for Linux - February 10th, 2010
- How to Apply Windows 7 Hidden Themes-Window 7 Latest Themes - February 10th, 2010


August 4th, 2009 at 1:58 am
Thanks a lot..
Very useful utility for scheduling Broadband connectivity….
August 16th, 2009 at 9:34 pm
Thanks for sharing. it is a very useful utility that will save me a lot of time.
December 5th, 2009 at 9:13 am
hey….is it possible to disconnect and reconnect internet by using Modem in ubuntu 8.10??
if yes please explain
thnax in advance:)