Example for connect to Internet via Modem, ISDN, ADSL, …
import win32ras # Dialup with a RAS entry win32ras.Dial ( None, None, ("windows_ras_entry_name", "", "", "username", "password", ""), None ) # Hangup the connection win32ras.HangUp ()
Automation of Applications with Python for Windows – The Script Collection
Example for connect to Internet via Modem, ISDN, ADSL, …
import win32ras # Dialup with a RAS entry win32ras.Dial ( None, None, ("windows_ras_entry_name", "", "", "username", "password", ""), None ) # Hangup the connection win32ras.HangUp ()