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 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

1 Answer 1

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

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.