0

Is it possible to dial-up and hang-up a connection? The connection is a PPP 3G connection in my Windows 7 system.

Adam Hawkes
  • 7,218
  • 30
  • 57
Bin Chen
  • 61,507
  • 53
  • 142
  • 183

1 Answers1

3

In previous versions of Windows, I used the command Rasdial. It appears to still be present in Windows 7.

c:> Rasdial "My PPP Connection"

To disconnect

c:> Rasdial "My PPP Connection" /disconnect

If you want more control, you can use your favorite scripting language to exercise the API.

Jason R. Coombs
  • 41,115
  • 10
  • 83
  • 93
  • Good one there. Out of curiosity, is it `c:\>` or `c:>` on Win 7? – o.k.w Nov 30 '09 at 02:51
  • Well, you could configure your prompt to display whatever you want. I just wanted some indicator that it was running from a DOS-like shell. `c:\>` is probably more common. – Jason R. Coombs Nov 30 '09 at 03:24