|
-
Jan 31st, 2011, 07:23 AM
#1
Thread Starter
New Member
VBS Run command - help required
Hello everyone,
I'm trying to run following CMD command using VBS Run.
Exe file is under directory: c:\Program Files\O T A\ota.exe
CMD:
c:\cd Program Files
c:\Program Files\cd O A T
c:\Program Files\O A T\oat.exe /Auto /T:A /AP:20020303-20020403A /DA:"xxxx" /SA:"yyyy" /Unread:Y
VBS:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run ("CMD /K ""c:\Program Files\O A T\oat.exe""" & "/Auto /T:A /AP:20020303-20020403A /DA:""xxxx"" /SA:""yyyy"" /Unread:Y")
From my own thoughts there are problems with quotes which appearing in parameters of the program.
Unfortunately I'm getting error: 'C:\Program' is not recognised as an internal or external command, operable program or batch file.
Thanks in advance for help.
Regards,
Wojciech
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|