Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to use the command start

For example, I have the programs Firefox and HxD installed on my system

C:\Users\Steven>forfiles -s -p "C:\Program Files (x86)" -m firefox.exe

"firefox.exe"

C:\Users\Steven>forfiles -s -p "C:\Program Files (x86)" -m HxD.exe

"HxD.exe"

and my path

C:\Users\Steven>path
PATH=C:\windows\system32;C:\windows\system32\wbem;

However I can launch Firefox but not HxD

C:\Users\Steven>start firefox

C:\Users\Steven>start HxD
The system cannot find the file HxD.
share|improve this question

1 Answer 1

up vote 1 down vote accepted

Firefox is probably registered with Windows as described here. Specifically, note the use of the

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths

key.

UPDATE

A little experimentation (using Notepad++ which I have installed but is not in my path) reveals that the "App Paths" key isn't consulted when launching the program from the command line directly. It does, however work with the START command.

share|improve this answer
1  
Bill, see my answer here. –  Karan Mar 18 '13 at 19:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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