Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   General IT Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=19)
-   -   Luanching dos prog from batch file (https://www.cableforum.uk/board/showthread.php?t=28894)

Millay 19-05-2005 13:25

Luanching dos prog from batch file
 
Hi All

I want to run a dos exe program from the command line, I was going to write a batch file, but everytime I do this the window just exits again... wondering what the ocmmand is to make the cmd window to be persistent instead of allways closing?

Does this make sense?

Many thanks
in advance
Andy

bmxbandit 19-05-2005 13:34

Re: Luanching dos prog from batch file
 
i cant answer your question specifically, but if you just want to look at the output then pipe it to a text file, e.g.:

program >> output.txt

(> overwrites, >> appends)

Gareth 19-05-2005 13:34

Re: Luanching dos prog from batch file
 
Here's a suggestion...

after you've finished doing whatever you want to do, just put the command pause. It'll then prompt you to press any key to continue.

bmxbandit 19-05-2005 13:37

Re: Luanching dos prog from batch file
 
...or create a shortcut to the program/batch file, and you can tell it not to close in properties.

Millay 19-05-2005 13:47

Re: Luanching dos prog from batch file
 
Thanks for hlep got it sorted now.. paused it to ee what was happening.. i can be a :dunce: some days


All times are GMT. The time now is 13:49.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum