Home » Questions » Computers [ Ask a new question ]

How to set default parameters for an application?

How to set default parameters for an application?

Is it possible to set default parameters for an application in Windows XP? (without using a shortcut) For example, I want Firefox to run with the parameters "-p username" when I run "firefox.exe".

Asked by: Guest | Views: 234
Total answers/comments: 4
Guest [Entry]

"Run regedit and take a look at the key:

`My Computer\HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\command`

Put -p username into the command string at the appropriate place.

I believe this affects all users on the machine, however.

You would also be wise to backup this part of the registry. In RegEdit, select the key:

`My Computer\HKEY_CLASSES_ROOT\FirefoxHTML`

and choose File | Export.... Choose the Selected Branch option to backup this part of the registry before changing it."
Guest [Entry]

"You can specify default parameters for any file (for example HTML files). Just:

Open My Computer
From Tools select Folder Options
Go to File types tab
Find the file type you want (HTM or HTML or both!)
Click on Advanced button
Select open action from actions list
Click on Edit
Add any parameter you want in text-box labled Application used to perform action:
Click on OK and OK and then Close

Now when user opens a HTM or HTML file, firefox (or any application that is associated to HTM or HTML files) will run by the specified parameters and opens that file.

But as far as i know, there is no way to specify a default parameter for a particular EXE when user clicks on it."
Guest [Entry]

Always use the same shortcut for Firefox? It's not, to my knowledge, possible to set this on a per-application basis, just per-shortcut.
Guest [Entry]

"An alternative to using a batch file compiler is to use an AutoIt script, which can be compiled into an exe file.
As has already been discussed here, you will have to rename the executable and replace it with the compiled script, which has its disadvantage when the executable is updated."