A few months ago I posted a complete C program that does all this. Try a search in the ActiveState perl mailing list with author equal to my email address.
Cheers John R Ramsden -----Original Message----- From: Richard Morse [mailto:[EMAIL PROTECTED] Sent: 10 May 2004 14:54 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Dial-up-Networking On 09 May 2004, at 10:33 AM, [EMAIL PROTECTED] wrote: > Is it possible to programatically create then dial a PPP connection > via RAS on a Windows NT/2000/XP box? > > I need to be able to create the connection, turn 'off use default > gateway on remote network', then dial the connection. > > Sample code would be very helpful. I'm sure there are modules that can do this, but I found the simplest way (for my purposes) was just to use the RASDIAL command. So I have a command that looks like: system("rasdial", $conn, $uname, $pw); which opens the connection, and then I use: system("rasdial", $conn, '/DISCONNECT'); to close the connection. HTH, Ricky _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Scanned by Messagelabs. _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
