What I want is some way to click on ANY batch file from Explorer and see the output without writing a helper script to
PAUSE it afterwards.
This is a question which seems likely to generate more OT answers than it should (judging by similar questions people have asked). To minimize that I've created a short list of questions I'm not asking:
First, I DO NOT want to know how to use the
PAUSEcommand or anything like it. I'm not looking for a way to modify every batch file on my system now and into the future.
Second, I DO NOT want to enable the
Confirm tab closingoption in ConEMU. By experimentation, I've found that this option does not seem to apply to batch files ran by clicking on them anyway.
Third, I DO NOT want to modify the way batch files are handled by programs other than ConEMU. I don't want to create a situation where scripts ran in a non interactive shell are stalled and left open. IOW, I need to ensure that other applications which launch batch files are handled normally. I only want to modify how they are handled when clicked in an interactive shell.
Some things I've tried:
ConEmu does apparently support logging (in the
Featuressection) of the console. This is great but it is really only a backup plan. I'd rather not have to open another file to show me what was just on my screen for 0.1 sec.
ConEmu has an
App Distinctsection in it's settings which looks like it could almost be setup to handle
*.batfiles using special rules but I cannot see anything which allows what I need.
ConEmu has an
ComSpecsection in it's settings which looks like it could do this as well (using
cmd.exe /kI presume) but nothing I've tried has had any effect on this and now I'm starting to think that all of those notes in the tool tips about what those options are specific to were serious (and so this will therefore never work for what I need now).
Bonus: If your solution will work with arbitrary exes as well that would be even better.
PS: Not sure why there are separate
Batch-File tags. I've got space so I'll use both but someone may want to fix that.