(Solved) How to run vbs script from TC specify only name?
Moderators: Hacker, petermad, Stefan2, white
(Solved) How to run vbs script from TC specify only name?
If I try to run vbs script from TC and specify only file name (without vbs extension) I get TC error window "File not found". If I type name with extension vbs (eg myscript.vbs) all works fine. From cmd.exe either variants work fine. Path to catalog with script file is specified in PATH variable. What I missed?
Last edited by Ovg on 2014-03-01, 09:30 UTC, edited 1 time in total.
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
#259941, TC 11.01 x64, Windows 7 SP1 x64
Re: How to run vbs script from TC specify only name?
TC's command line is not a console command processor. Commands entered on TC's command line are executed as a Windows Run command. Running your script file without extension also does not work when using Windows Run.Ovg wrote:If I try to run vbs script from TC and specify only file name (without vbs extension) I get TC error window "File not found". If I type name with extension vbs (eg myscript.vbs) all works fine. From cmd.exe either variants work fine. Path to catalog with script file is specified in PATH variable. What I missed?
"cmd /c myscript" does work.
So does a batch file myscript.bat containing "myscript.vbs"
So does any alias running a custom command defined as "myscript.vbs"