Hi people
If you want to know how to trigger a Dial-up connection in Win2K and how
to close it without Xtras try this
open("RASDIAL.EXE ConnectionName userName password") -- just like this
without quotes for parameters, it's all case sensitive for params
where:
ConnectionName is the dial-up name e.g. Aol, Freeserve,BT-Internet or
whatever it's named in your Network and Dialup pannel
to close an existing connection to the internet use this:
open("RASDIAL.EXE connectionName / DISCONNECT")
and that's it!
Hmmm..I've just found more...this also looks interesting
------------------------------------------------------------------------
---------------------------------------
RASDIAL.EXE provides unattended dialing. It does not support the
following features available in RASPHONE.EXE: prefix/suffix,
auto-redial, change password, retry authentication, statistics, operator
assisted dialing, and connections requiring Terminal mode input.
RASPHONE.EXE is found in the system32 folder.
To Create a RASPHONE Secure Desktop Icon to automatically dial, use the
following command line:
rasphone.exe -d <entry>
You can put the icon in your Start Up group if you want to automatically
dial when you log on.
The following RASPHONE command line options are not documented
elsewhere, and are not guaranteed to work in future releases.
Usage: rasphone [[[-e|c|r|d|h|s|q] entry]|-a] [-f file]
-e Edit phonebook entry mode
-c Clone phonebook entry mode
-r Remove phonebook entry mode
-d Dial entry mode
-h HangUp entry mode
-s Status entry mode
-q prompt user before entering Dial entry mode
entry entry name
-a Add phonebook entry mode
-f file Full path for the phonebook
Running RASPHONE <ENTRY> without a switch is the same as running
RASPHONE, highlighting the entry name, and choosing Dial.
Using WinExec() or CreateProcess() and the -a, -e, -c, and -r switches,
you can open RASPHONE dialogs from another applications.
------------------------------------------------
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL
PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping
with programming Lingo. Thanks!]