@Кирилл-Фролов said in How did developers set environment variables??:
Why when i run notepad++ from win+r menu it opens, but not when run from command line
Because they use 2 different mechanisms for locating the program.
I can’t find anything in my PATH variable that contains notepad
Which explains why it can’t be found when running from the command line.
Add the folder of notepad++.exe to the PATH environment variable, or specify the complete path to notepad++.exe on the command line.