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&Tricks
- 5 great extensions for Chrome to take screenshot of web pages. - August 26th, 2010
- A Free Utility to Backup all your Windows Drivers - August 26th, 2010
- Run or Test Android OS on Laptop or Desktop Computer using Live bootable Android OS USB / CD ROM - August 22nd, 2010
- Error “Windows Cannot Access the Specified Device, Path, or File” When Playing DVD Movies in Windows 7 - August 22nd, 2010
- Repair virus infected netbook: run Kaspersky Rescue Disk 10 from USB Flash Drive - August 20th, 2010

{ 4 comments… read them below or add one }
Thanks a lot..
Very useful utility for scheduling Broadband connectivity….
Thanks for sharing. it is a very useful utility that will save me a lot of time.
hey….is it possible to disconnect and reconnect internet by using Modem in ubuntu 8.10??
if yes please explain
thnax in advance:)
thanks but how to overcome the error 623 when i try to connect in the way u told.plz please please help me by sending e mail to me at ravigpa@gmail.com