General discussion

Locked

Preventing closing a MS-DOS box?

By bart_lagast ·
How can an a MS-DOS box be prevented from closing itself when exiting in Windows NT?
The box is started with a shortcut on the desktop and launches an exe-file (not the MSDOS or Command prompt!).

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Preventing closing a MS-DOS box?

by Soekratis In reply to Preventing closing a MS-D ...

If can be more specific, perhaps i can help you.

Collapse -

Preventing closing a MS-DOS box?

by bart_lagast In reply to Preventing closing a MS-D ...

running a command-line application (like ping.exe) from a shortcut on the desktop closes automaticaly the dosbox on exiting the application. So the output is not available any more (redirecting the output to a file is a possible, but not very attractive possibility).

Collapse -

Preventing closing a MS-DOS box?

by skutts In reply to Preventing closing a MS-D ...

instead of typing
ping 192.168.2.1
try
command /k ping 192.168.2.1

the /k switch forces the command interpreter to keep running

or you could make a batch file called png.bat for example:

@echo off
command /k ping %1

the %1 is the variable, so typing
png 192.168.2.1

would actually run

command /k ping 192.168.2.1

or png skutts

would run

command /k ping skutts

get the idea?

skutts

Collapse -

Preventing closing a MS-DOS box?

by bart_lagast In reply to Preventing closing a MS-D ...

in the comment above ping.exe is just an example. The question is in general: for all programs started on the command-line (command programs like find, expand, chkdsk, ... but also a command-line compiler, interpreter, ect...) the window (dosbox) disappears when the executed command has finished.

Back to Windows Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums