0

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

4
  • try cmd /c​​​​ Feb 7, 2012 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, 2012 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) Feb 7, 2012 at 9:09
  • for an answer using only Windows features, please see superuser.com/questions/1021219/…
    – user817540
    Nov 19, 2017 at 1:05

1 Answer 1

0

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.

You must log in to answer this question.

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