Re: Converted BAT won't function

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Bill (stanton_at_jps.net)
Date: 11/26/04


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?
>
>



Relevant Pages

  • Re: Internet Explorer and Memory
    ... any objects to be destroyed and memory to be recovered. ... after termination of the child vbs it's iexplorer remains in the ... >without corresponding call to IEStop()? ... >If not IsObjectThen Exit Sub ...
    (microsoft.public.scripting.vbscript)
  • Re: Internet Explorer and Memory
    ... any objects to be destroyed and memory to be recovered. ... after termination of the child vbs it's iexplorer remains in the ... >without corresponding call to IEStop()? ... >If not IsObjectThen Exit Sub ...
    (microsoft.public.scripting.wsh)
  • Re: Read Status of Shift and CTRL Key
    ... paste the below code in a notepad window ... sub GetAltStatus_onclick ... window.event.ctrlKey returns true if ctrl key is pressed ... [vbs begin] ...
    (microsoft.public.scripting.vbscript)
  • Procedures dont have access to public Variables in ASP
    ... The problem is when running in ASP ... my .vbs file which is on the server using wscript or cscript all is fine. ... The only difference is the QuitOnError() procedure. ... sub SendEmail ...
    (microsoft.public.scripting.vbscript)
  • Problem with Data.Read
    ... I am good in VBS but now I want to switch to vb.net because of getting crazy while creating every form in VBS with InternetExplorer an HTML. ... Dim objKategorien() As Kategorie ... Private Sub ReadDB() ... I have to Dim connDB2, too, because the compiler says: Dieser Verbindung ist bereits ein geöffneter DataReader zugeordnet, der zuerst geschlossen werden ...
    (microsoft.public.dotnet.languages.vb)