c:\windows\system32\rasdial.exe /disconnect
Thanks Ed,
Ray at home
"Eddie Craig" <eddie...@sbcglobal.net> wrote in message
news:OA6EAv9s...@TK2MSFTNGP12.phx.gbl...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Hi
Set oShell = CreateObject("WScript.Shell")
oShell.Run "%SystemRoot%\System32\rasdial.exe /disconnect", 0
--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter
Hi
If the script is started with a program that will reboot the computer after the
rasdial.exe /disconnect call out, you should set the Run method's 3rd parameter
(bWaitOnReturn) to true:
Set oShell = CreateObject("WScript.Shell")
oShell.Run "%SystemRoot%\System32\rasdial.exe /disconnect", 0, True
WSH 5.6 documentation (local help file) can be downloaded from here if you
haven't got it already:
http://msdn.microsoft.com/downloads/list/webdev.asp