MSDOS

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I prevent DOS window from closing upon completion of running a
program in XP. Normally id just go properties of the dos program, then the
program tab Expect ITS NOT THERE!!! how can i prevent dos closing as soon as
the program stops working. i cant read the out put which is made.
 
Skater Boy said:
How can I prevent DOS window from closing upon completion of running a
program in XP. Normally id just go properties of the dos program, then the
program tab Expect ITS NOT THERE!!! how can i prevent dos closing as soon as
the program stops working. i cant read the out put which is made.

Since there is no DOS under Windows, I assume that you
are talking about the Command Prompt. DOS is an operating
system all of its own, same as Windows or Linux.

You can keep a Command Prompt open by placing your
application inside a batch file like so:

@echo off
"c:\Program Files\Some Application\application.exe"
pause

Now invoke this batch file instead of your application.
 
Skater Boy said:
How can I prevent DOS window from closing upon completion of running a
program in XP. Normally id just go properties of the dos program, then the
program tab Expect ITS NOT THERE!!! how can i prevent dos closing as soon
as
the program stops working. i cant read the out put which is made.

You could also add a "cmd /k " to a program shortcut

eg creating a shortcut to
%windir%\system32\cmd.exe /k c:\someprogram.exe

or, say add it to a one line batch file (extension .bat ) eg
cmd /k c:\someprogram.exe

depending on how you run the program.

Jon
 
Back
Top