command window question...



Hi everyone.

I've done some research, and I can't seem to find exactly what I'm looking for.

I'm running Windows XP Pro. I use total commander, which is a file manager for Windows, a program like Windows Explorer to copy, move or delete files. However, Total Commander can do much more than Explorer, e.g. pack and unpack files, access ftp servers, compare files by content, etc.

It (Total Commander) also has a command line at the bottom of the window that allows me to run a particular dos-based program I use daily. When I type the program's name followed by a spec file, it happily launches cmd.exe and runs the program.

When it finishes, however, the cmd window closes before I can see the results.

I've read some of the tips in other posts (i.e. start-run-cmd /k or holding the enter key before pressing return) to keep the cmd window open. But these solutions are not really practical for me. I wondered if there was a registry setting I can modify so that the cmd.exe window stays open by default.

Any help would be appreciated!


R. C. White

Hi, Ed.

I use the "DOS" window a lot, so maybe I can help. I haven't used Total
Commander, though, so I'm not sure exactly how its command line works.

When you first click Command Prompt (or run cmd.exe), it comes up in a small
window. If you right-click on the blue Title Bar and click Properties, you
can adjust some of the properties, but not all. If you click Start | All
Programs | Accessories, then right-click Command Prompt and click
Properties, you can adjust a few more of the properties. The "stay open"
option does not seem to be one of them, but I wonder what would happen if
you added /K to the end of the Target line?

Would Total Commander let you run a batch file that includes the commands
and switches you need?


Wesley Vogel

Create a batch file.
Call it whatever
Save it as...

Include the program .exe and the word pause at the end

It will look like...



In my example, Qfecheck.exe runs. When done, this is displayed:
Press any key to continue . . .

Command window will stay open until you press a key.

You can save the batch file where ever and create a shortcut to it.

[[Suspends processing of a batch program and displays a message prompting
the user to press any key to continue.]]

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question