I often use a command line application. Its path is defined in the environment options, so in the
PATH variable. When I manually launch the console and if I type the program name, it's launched.
For example, I type
theprogram -option1 -option2 then it's launched with whatever the working directory is. (the
.exe path is resolved by the
If I write the same in a
.bat file, Windows brings up a message box saying it cannot find the program. In the
.bat file there is
start theprogram -option1 -option2, but I get the error message. So it seems that the
PATH variable is not used in a
How can I launch
theprogram from a
.bat file, without specifying the full path? Does Windows 7 disable the
PATH variable in
.cmd files ?