Login | |
|
 |
RE: load batch file into vbs - 10/22/2008 12:50:59 AM
|
|
 |
|
| |
ebgreen
Posts: 5251
Score: 31
Joined: 7/12/2005
Status: offline
|
This line is a problem: WshShell.Exec("C:\Program Files\Avaya\IC71\bin\qui.exe") First, you are not accessing any of the text streams from the process so there is no reason to use .Exec. .Run makes more sense. Second, since there is a space in the path you will need to double quote the entire string. There are lots of discussions of this around the site. As for converting the bat to vbs, you certainly could and it wouldn't be terribly hard. It is up to you to decide if it is worth the effort.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: load batch file into vbs - 10/22/2008 1:01:32 AM
|
|
 |
|
| |
TNO
Posts: 1402
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
|
Another suggestion would be to put a list of the filenames in an array, then loop through the array and prepend the file path/command dynamically. This should cut the size down significantly and let you have just one file to worry about
_____________________________
To iterate is human, to recurse divine. -- L. Peter Deutsch
|
|
| |
|
|
|
|
|