//flex table opened by JP

Click to See Complete Forum and Search --> : Automate DOS window closing?


Bear
07-27-1999, 04:26 PM
On some dos programs you can hit the "Esc" key to close.

smunzli
07-27-1999, 06:44 PM
make a bat file that loads the program
like load.bat now put this in your start up folder. but edit properties and set to "close on exit" and "hide from windows"

BFlurie
07-27-1999, 07:03 PM
Putting it in a batch file was one of the first things I tried. It didn't work. Thanks anyway.

BFlurie
07-28-1999, 12:23 AM
I have a DOS utility that I load from the Windows startup folder. This is necessary as it returns an error and locks if loaded in autoexec. The properties for this program are set to "prevent MS-DOS programs from detecting Windows" as this prevents a nuisance message from Windows. However, in doing that I have to type Ctrl-C to close the window after the program loads, even though "close on exit" is selected for its
properties. There must be some way to automate the Ctrl-C entry so I don't have to type it after every reboot, but I'm unsucessful so far. Any ideas?

Ben

smunzli
07-28-1999, 05:48 PM
then try putting the "pif" in the start up. windows creates one for ever dos program that runs from with in windows. it has the same name as the "bat" but with no extension i know they will run and exit.

smunzli
07-29-1999, 05:09 PM
sounds as though the program is asking for you to hit ctrl c, if so its looking for input from the keyboard and a batch file line won't work. because the next line won't be read till the progam releases back to the batch file.

BUMMER!

BFlurie
07-30-1999, 12:02 AM
I've tried before what you said & it wouldn't work. If the shortcut or program is selected to run as "suggest MS-DOS mode as neccessary, Windows does just that -- it suggests the program be run in MS-DOS mode and halts. However, if run in that mode the message "You have attempted to run a program that is incompatible with the current MS-DOS version. Please insert a disk ......" and the system halts. The program will run properly if in the Windows startup folder with "hide this program from Windows" and "close on exit" selected, but the infamous "Your pop-up program is ready to run. Please type Cntrl-C to exit" appears. It's no big deal, but I just know there has to be a simple way to automate the Cntrl-C entry.

[This message has been edited by BFlurie (edited 07-29-99).]

BFlurie
08-01-1999, 06:46 PM
Got it to work! Looked at the M$ knowledge base. Made a tiny batch file w/the line --- command.com /c and placed this in the shortcut's "run batch file" entry. Kinda got it figured out what it does.