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

share|improve this question

migrated from serverfault.com Feb 7 '12 at 7:54

This question came from our site for professional system and network administrators.

    
try cmd /c​​​​ –  Mark Henderson Feb 7 '12 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 '12 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 '12 at 9:09
add comment

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.

share|improve this answer
add comment

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.