Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to convent a batch file

0 views
Skip to first unread message

Eddie Craig

unread,
Nov 26, 2003, 12:09:41 AM11/26/03
to
I created a batch file to disconnect from my dial up connection; I always
get a Dos window, then the file exits. Can anyone help me run my batch file
as an invisible.vbs file?


c:\windows\system32\rasdial.exe /disconnect

Thanks Ed,


Ray at <%=sLocation%>

unread,
Nov 26, 2003, 12:29:19 AM11/26/03
to
Show us how you're currently running it.

Ray at home

"Eddie Craig" <eddie...@sbcglobal.net> wrote in message
news:OA6EAv9s...@TK2MSFTNGP12.phx.gbl...

Eddie Craig

unread,
Nov 26, 2003, 1:30:49 AM11/26/03
to
I have a program called Sleepy and it let me run the my batch file
called dsl.bat and then restarts my computer. Sleepy also let me test
the batch file.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Torgeir Bakken (MVP)

unread,
Nov 26, 2003, 1:16:03 PM11/26/03
to
Eddie Craig wrote:

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


Torgeir Bakken (MVP)

unread,
Nov 26, 2003, 1:19:36 PM11/26/03
to
Eddie Craig wrote:

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

0 new messages