Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an executable that I would like to run with a flag:

C:\path\executable.exe -a-flag=flagstuff

I know I am able to make shortcuts and batch files run the executable with flags automatically, but I do not want to have to hunt down and set every single shortcut and set the flag. And even if I did that, applications that set that executable as the default application for something won't run the application with flags.

How can I make it so this executable will always run with a flag?

share|improve this question
up vote 2 down vote accepted

I guess you could edit the registry settings of that particular executable so it always runs with the parameters you set. Below, is a related question regarding always running firefox.exe with some arguments on windows xp:

How to set default parameters for an application?

I believe, the registry path shouldn't be much different on windows 7 as well. i.e. always something like

\HKEY_CLASSES_ROOT\MyApplication\shell\open\command

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .