Board index » Visual Studio » Shutdown DUN connection

Shutdown DUN connection

Visual Studio6
How can I, from an external program, shut down a Dial Up Network or whatever

it is called in XP, connection?



The two computers (icon in the tray).



I wish to be able to send a disconnect and cause that program to exit

memory.



I have a program that automates my ISP connect experience and loads all

appropraite programs etc and for the most part shutsdown but don't know how

to do this last step.



Thanks,



Shane


-
 

Re:Shutdown DUN connection

you can use the shell command to run the RASDIAL [connectionname]

/DISCONNECT



ie shell("rasdial myisp /disconnect")



HTH

Simon

"SStory" <TheStorys@TAKEOUTTHISSPAMBUSTERsofthome.net>wrote in message

Quote
How can I, from an external program, shut down a Dial Up Network or

whatever

it is called in XP, connection?



The two computers (icon in the tray).



I wish to be able to send a disconnect and cause that program to exit

memory.



I have a program that automates my ISP connect experience and loads all

appropraite programs etc and for the most part shutsdown but don't know

how

to do this last step.



Thanks,



Shane









-

Re:Shutdown DUN connection

interesting.. That may be the ticket.



I will try this.



Thanks,



"Simon Verona" <news@aphroditeuk.com>wrote in message

Quote
you can use the shell command to run the RASDIAL [connectionname]

/DISCONNECT



ie shell("rasdial myisp /disconnect")



HTH

Simon

"SStory" <TheStorys@TAKEOUTTHISSPAMBUSTERsofthome.net>wrote in message

news:%23GDcYVs3DHA.2460@TK2MSFTNGP10.phx.gbl...

>How can I, from an external program, shut down a Dial Up Network or

whatever

>it is called in XP, connection?

>

>The two computers (icon in the tray).

>

>I wish to be able to send a disconnect and cause that program to exit

>memory.

>

>I have a program that automates my ISP connect experience and loads all

>appropraite programs etc and for the most part shutsdown but don't know

how

>to do this last step.

>

>Thanks,

>

>Shane

>

>









-