disable close on exit in command prompt

R

rchappelear

Is there any way to disable close on exit in a command
prompt window. I have a dos program thats called when
another program opens, but the dos program closes with
information on what happened before I can read what it
says. If I could disable close on exit, or create a log
file of what shows in the window, I could resolve my
problem. Any help would be greatly appreciated
 
T

Torgeir Bakken \(MVP\)

rchappelear said:
Is there any way to disable close on exit in a command
prompt window. I have a dos program thats called when
another program opens, but the dos program closes with
information on what happened before I can read what it
says. If I could disable close on exit, or create a log
file of what shows in the window, I could resolve my
problem. Any help would be greatly appreciated
Hi

Try this if you have control over the launch parameters:


%comspec% /k "my other program here"
 
A

Al Dunbar [MS-MVP]

rchappelear said:
Is there any way to disable close on exit in a command
prompt window. I have a dos program thats called when
another program opens, but the dos program closes with
information on what happened before I can read what it
says. If I could disable close on exit, or create a log
file of what shows in the window, I could resolve my
problem. Any help would be greatly appreciated

If you can set it up so that a batch file is called instead of the
executable, then you could just create a batch file to run the executable
and then pause, i.e.:

@echo off
"C:\program files\acme\coyote_anvil.exe"
pause

The program that causes the dos program to be called - is it a dos program
too, or what?

/Al
 

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

Top