0

Example for the key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run, I have the executable name set as hello.exe instead of its full path. How does Windows search for the executable, is there a particular order.

2
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    May 9 at 8:32
  • 1
    It will iterate through the %path% variables, then if it can't find it, return an error. May 9 at 8:37

1 Answer 1

1

Windows will assume that the .exe is located in a directory as specified in your Environment Variables; specifically your %path% variable.

enter image description here

If you type path into a command prompt, a semi-colon list of paths will be returned. Or, click 'Edit' whilst Path is highlighted in the list of environment variables, to be presented with an editable list.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.