I am just hitting myself over the head right now. I wanted to change my "EDIT" setting of .BAT files to PsPad - instead I accidently changed the OPEN menu.

Now I was able to remove the entry using "Defaults Program Editor", a nice litte tool. But now I dont know which "default program" to select when doubleclick .BAT files. I tried CMD.exe, but maybe I need some option to make it run, it just opens the command line and does nothing at the moment :-(

Chris

link|improve this question
try cmd /c​​​​ – Mark Henderson Feb 7 at 7:54
try cmd.exe "%1" infact adding to what farseeker says try /c or /k.. /k would make it stay open so cmd /k "%1" – barlop Feb 7 at 7:57
yeah, that was it :-) cant give bounty if you only comment - so if you want, add it as answer. Damn, that was simple, but really hard to look at google for these search tearms (run, bat, batch) – Christian Feb 7 at 9:09
feedback

migrated from serverfault.com Feb 7 at 7:54

This question came from our site for system administrators and desktop support professionals.

1 Answer

up vote 0 down vote accepted

My machine uses the command %SystemRoot%\System32\cmd.exe /c "%1" %*

The /c is not necessary though.

As mentioned in the comments you have already figured this out though.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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