Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Initiating a DUN or RAS session
Message
De
12/08/1998 08:32:42
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00123176
Message ID:
00125949
Vues:
11
>>Hello all...
>>Could anyone tell me how to initiate a dial-up networking (win 95) or a RAS (win nt) from inside my foxpro 2.6 app? What program do i have to call? is there a good source of information on this subject? Background: I need to add new functionality to my app. It must be able to dial up an internet provider and initiate a connection.
>>
>>Thanks in advance,
>>
>>Steven
>>Meade Willis
>>webmaster@meadewillis.com
>
>
>I'm trying to do the same thing, initiate a RAS connection and map a drive. I am currently evaluating an ActiveX component from Dameware. I'm not done yet, but it seem promising and it's only $20. Look at http://www.dameware.com.
>
>If you would, let me know if you find anything better.

An ActiveX control isn't going to help with 2.6, either DOS or Windows. In the case of Win95 or Win98, the registry key HKEY_CLASSES_ROOT\dunfile\shell\open\command will give you the necessary command line to fire a DUN profile if you know the name of the DUN profile; the default value in my registry looks like:

C:\WINDOWS\RUNDLL32.EXE RNAUI.DLL,RnaRunImport %1

Under NT, the registry key HKEY_CLASSES_ROOT\pbkfile\shell\Open\command points to the RAS Phone dialer command line, in my case:

%SystemRoot%\system32\rasphone.exe %1

In both cases, %1 points to the DUN/RAS entry to dial..

hth,

Ed
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform