John H.
2010-02-18 18:48:57 UTC
Hi,
Honestly, I’ve tried to find this on my own. I’m new to Windows
scripting. I feel like I’m missing some really basic concept. Is it
possible to have cscript.exe search the PATH (or other directory list)
to find a .vbs file to execute? I have a series of .vbs scripts
stored is a set of network directories with long path names. I’d like
to be able to execute these scripts by just entering “cscript.exe
scriptname.vbs” from the command line w/o specifying full path to
the .vbs file each time.
I’ve added the script directories to my PATH. My PATHEXT
environmental variable has .vbs in the list.
Thanks,
John
Honestly, I’ve tried to find this on my own. I’m new to Windows
scripting. I feel like I’m missing some really basic concept. Is it
possible to have cscript.exe search the PATH (or other directory list)
to find a .vbs file to execute? I have a series of .vbs scripts
stored is a set of network directories with long path names. I’d like
to be able to execute these scripts by just entering “cscript.exe
scriptname.vbs” from the command line w/o specifying full path to
the .vbs file each time.
I’ve added the script directories to my PATH. My PATHEXT
environmental variable has .vbs in the list.
Thanks,
John