New
#1
run a .bat sortcut in cmd window
I tried to run a Batch file shortcut in a cmd window. It failed because it won't realise the shortcut. Is there any way to do it? Thank you very much!
I tried to run a Batch file shortcut in a cmd window. It failed because it won't realise the shortcut. Is there any way to do it? Thank you very much!
Where is the batch file located? To run from a Command Prompt it either has to be in the current directory (C:\Users\<youruserid> ) or in a directory contained in the PATH environment variable.
To see what directories are in path, type path from a Command Prompt.
I tried to change .bat to .cmd. The shortcut to a .cmd file still can not be executed in command window. I think set environment variable PATH is the best way can do. Thank you everyone!