Running DOS program under XP

S

Stephen D.

When I ran a small DOS program under Windows 98, the
shortcut & pif file had an option to "Close on Exit". If
this is un-ticked, window remains open so I can see the
result of the program. Under Windows XP the "Close on
Exit" option doesn't exist, and the window closes anyway
after running the program. How can I get the window to
stay open, so I can see the results?

Many thanks

Stephen
 
N

NobodyMan

When I ran a small DOS program under Windows 98, the
shortcut & pif file had an option to "Close on Exit". If
this is un-ticked, window remains open so I can see the
result of the program. Under Windows XP the "Close on
Exit" option doesn't exist, and the window closes anyway
after running the program. How can I get the window to
stay open, so I can see the results?

Many thanks

Stephen

Open the CLI (start/run/cmd)
run your program from the CLI prompt
Type "exit" when finished to close the CLI window
 
A

Alex Nichol

Stephen said:
When I ran a small DOS program under Windows 98, the
shortcut & pif file had an option to "Close on Exit". If
this is un-ticked, window remains open so I can see the
result of the program. Under Windows XP the "Close on
Exit" option doesn't exist, and the window closes anyway
after running the program.

The shortcut has probably got made as a lnk one not a pif.

Make a new one by right-dragging the .exe file onto the desktop and take
Create Shortcut - that will have the Program page in its properties with
a Close on Exit.

Note that making a shortcut to a .bat file will create the lnk type.
What you can do is make the shortcut initially to a handy DOS .exe file,
then edit the properties to change the program name to be that of the
..bat file
 

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