Re: Converted BAT won't function
From: Bill (stanton_at_jps.net)
Date: 11/26/04
- Next message: StephenMcC: "RE: Converted BAT won't function"
- Previous message: McKirahan: "Re: Converted BAT won't function"
- In reply to: McKirahan: "Re: Converted BAT won't function"
- Next in thread: McKirahan: "Re: Converted BAT won't function"
- Reply: McKirahan: "Re: Converted BAT won't function"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 26 Nov 2004 14:11:46 GMT
I don't, I just want to double-click the vbs
file from Windows Explorer or pass the file
name to WScript.exe, like one might do in
a Registry Run key.
Bill
"McKirahan" <News@McKirahan.com> wrote in message
news:cMGpd.89209$V41.1635@attbi_s52...
> "Bill" <stanton@jps.net> wrote in message
> news:LfGpd.4214$NU3.240@newsread1.news.pas.earthlink.net...
>> I'm attempting to convert a simple BAT file to VBS, as
>> seen below. When I double-click the vbs file, nothing
>> happens, i.e., the intended Rasdial connection does not
>> occur. No diagnostics from WSscript are displayed.
>>
>> What am I missing?
>>
>> Sub DialJPS()
>> Set oShell = CreateObject("WScript.Shell")
>> oShell.Run "c:\Windows\System32\rasdial.exe Rasdial jps stanton@jps.net
>> mypassword" ,0
>> End Sub
>>
>> Thanks,
>> Bill
>
>
> Where do you call the Sub?
>
>
- Next message: StephenMcC: "RE: Converted BAT won't function"
- Previous message: McKirahan: "Re: Converted BAT won't function"
- In reply to: McKirahan: "Re: Converted BAT won't function"
- Next in thread: McKirahan: "Re: Converted BAT won't function"
- Reply: McKirahan: "Re: Converted BAT won't function"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|