# Why can i start some apps from windows cmd and run, even though there are no path variables for them?

So I know about the PATH variable, but it's not there. Why can I type "notepad++" in cmd and it will work and how can make other apps work like this?

The question is not HOW to start it via win+r run, but WHY can I start it right after installation without putting notepad++ directory to path variable.

EDIT1:

Current user:

System:

EDIT2: cmd echo %path%

• Use echo %PATH% in Command Prompt to inspect the actual contents of PATH. – Daniel B May 14 '19 at 13:57
• Again: Please use echo %PATH%. Also, use where notepad++ to see where it is picked up. Only then can we start to check where this folder is added to %PATH%. – Daniel B May 14 '19 at 14:36
Mose likely because some apps and programs add their paths to registry. Here you can find more about searching order for starting apps via cmd or win+r. These paths are stored in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths Here you can find more about application registration on Microsoft docs.