How to write windows script to dial a connection
Question
Is it possible to dial-up and hang-up a connection? The connection is a PPP 3G connection in my Windows 7 system.
Solution
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow