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

Hennes
  • 64,768
  • 7
  • 111
  • 168
  • try `cmd /c`​​​​ – Mark Henderson Feb 07 '12 at 07: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 07 '12 at 07: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 Ruppert Feb 07 '12 at 09:09
  • for an answer using only Windows features, please see https://superuser.com/questions/1021219/windows-batch-file-not-running-when-i-double-click-how-to-restore-association-w/1269561#1269561 – user817540 Nov 19 '17 at 01:05

1 Answers1

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.

MaskedPlant
  • 418
  • 2
  • 10