Hello all, I'm facing an issue when I try using a environment variable with cscript.
I have a cmd file that contains the follow command:
cscript c:\folder\file.vbs
My problem is: I cannot use a fixed drive.
So I created a environment variable where I set the drive value. This variable is Drive.
I tried to use this variable like this, but without success.
cscript %DRIVE%folder\file.vbs
run cscript "%DRIVE%folder\file.vbs"
run cmd /c cscript.exe "%DRIVE%folder\file.vbs"
Can someone help me with this?
I have a cmd file that contains the follow command:
cscript c:\folder\file.vbs
My problem is: I cannot use a fixed drive.
So I created a environment variable where I set the drive value. This variable is Drive.
I tried to use this variable like this, but without success.
cscript %DRIVE%folder\file.vbs
run cscript "%DRIVE%folder\file.vbs"
run cmd /c cscript.exe "%DRIVE%folder\file.vbs"
Can someone help me with this?