>>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