| Title | How to run Visual Basic Scripts |
| Date Updated | 5/16/2002 |
| Versions affected | 4.0 and later |
| OS affected | Not a bug |
| Description | User tries to run a visual basic script using the WinCommand or Command tasks. The task fails with an internal error = 193. The task exit code = 101 or 1, depending on your version. |
| Causes | Visual basic scripts are not executables. They have to run within a shell. |
| Solution | 1) Run your visual basic script from within a
batch file. Then run this batch file using the WinCommand task. This has been
reported to work well. 2) In a Command task, use the following code: commandline = cmd.exe /c c:\your_dir\your_script.vbs working dir = c:\your_dir 2) Try using the 'Open Documents' task. This task is equivalent to clicking on the script manually. This task returns immediately, and is generally not useful within a chain. |
| Output Log | ........... CreateProcess: C:\TEMP\bsym2dx.vbs error=193 Oct 4, 2001 8:07:00 AM Command - sym2dx - Exit Code = 101 |
| Debug Log |
- |