disable close on exit in command prompt

  • Thread starter Thread starter rchappelear
  • Start date Start date
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
 
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"
 
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
 
Back
Top