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.

Another little, but annoying and not understandable issue on my computer:

If I use the start menu's search box to launch firefox with command line arguments (e.g. -p -no-remote) but without its full path, firefox is launched without arguments...

And on the other side, if I use the run box (Win+R) I don't need the full path and the arguments are used. And if I use another command line (e.g. cmd /K ipconfig) in the start menu's search box there's no problem either...

As far as I remember it's not the normal behavior. And reinstalling doesn't fix it, so how to?

share|improve this question

2 Answers 2

Suggestion: create a batch file (.bat or .cmd) in the Firefox folder that'll do this for you:

firefox.bat (or firefox.cmd)

firefox.exe -p -no-remote

Would the search-box find this script? (I don't have Win7 so I can't check).

share|improve this answer
    
No, the search-box doesn't find the batch file. I think it only looks in the start menu shortcuts, path (variable environment) and some registry keys. I could simply create a shortcut with the arguments built-in but I want to keep the modularity of the use of arguments –  fluxtendu Mar 10 '10 at 15:55
up vote 0 down vote accepted

After some research, I found that if I add the extension (.exe) it works

So I will use:

firefox.exe -p -no-remote

and not:

firefox -p -no-remote

I also found that if I remove all the shortcuts from the start menu it works too (without the ".exe")

Additional note: I think the search box use this registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\firefox.exe to find it

It leads to other questions: Which places exactly are used to launch programs from the search box? In what preference order? Is it possible to configure this order?

share|improve this answer
    
I believe it does it in the order of one's path, and also finds .lnk files, too. –  Phoshi Mar 10 '10 at 16:05

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.