Connect Disconnect PPPOE or Dial up using Command Line or Batch Scripting
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 .