New
#1
[solved] .exe need directory after adding it to user environment varia
I added a command program to a directory that's not listed in what's displayed after I do the command. As I intend to use that program multiple times I'd like somehow its name, what's before .exe, to work no matter the current directory of the command-line. I made a search and it seems that I should add an entry to Environment Variables, in the System Properties tab Advanced, so I added one with the program name as name and its directory as its data then rebooted. Since then when I enter its program name anywhere but its directory I getCode:echo %path%
How can I change settings so I can execute the program in any directory ?'PROGRAM_NAME' is not recognized as an internal or external command,
operable program or batch file.
I'm on Win 10 Pro 22H2.
Thank you kindly
Last edited by DynV; 23 Feb 2023 at 23:19.