How to disconnect a dial-up connection from the command prompt

  • Thread starter Thread starter DCC
  • Start date Start date
D

DCC

Is there any way to disconnect a dial-up connection on the machine that
started the dial-up connection from the command prompt?
(No LAN involved)

Thank you.
DCC
 
Hi,

You can use the rasdial /disconnect command.
Type rasdial /? from the command prompt for the options.

Werner Doubell
 
If you just have the one connection try

rasdial /disconnect

rasdial

with no switches shows current connections

For other switches look in help and support

Paul
 
There seems to be one hell of a time delay, posting messages at the moment.
It looks like 3 of us all answered the same question.

There's also a lot of new messages disappearing, with 'no longer on server
errors"

Whats going on ??
 
Paul B T Hodges wrote in
There seems to be one hell of a time delay, posting messages at
the moment. It looks like 3 of us all answered the same question.

There's also a lot of new messages disappearing, with 'no longer
on server errors"

Whats going on ??

Here too. Sometimes dropping the connection (close the reader and
restart) helps. Looks a lot like a sync issue with MS servers.
 
ofcourse there is.. i will tell you with an example so you can get it quickly.

in network connections (windows 7 open network and sharing center -> change adaptor settings ) , there you can see our connections. i have two connections here, one is INTERNET and other one is INTERNET2 . so i want to dial the first one "INTERNET" with a command prompt..
its simple..... open command prompt and type "rasdial INTERNET" without quotes. you are done.
try disconnecting that with typing "rasdial /DISCONNECT" without quotes.

here is your answer. open a notepad and write "rasdial INTERNET" (without quotes),
and click save as , change its name to "name.bat" there created a bat file, if you havn lost your mind somewhere. ;) you can doubleclick that file whenever you want to connect your network.

now, do you want to connect it automatically when windows starts?

goto start - all programs - startup, right click and open that folder and copy paste the file which you created already,(name.bat) to that folder.from now when windows starts, your computer will automatically connect to internet .. :)
 
Back
Top