Forum Home
Press F1
 
Thread ID: 43021 2004-03-01 02:24:00 Batch files create unsightly desktop clutter...pffft dchip (1426) Press F1
Post ID Timestamp Content User
219225 2004-03-01 09:18:00 what if you put the entire command in " " marks??

There was a post a while back on how to close command prompt windows in a batch file.... pressf1.pcworld.co.nz
which suggests right-clicking on the batch file, and setting it to "close" when finished.
somebody (208)
219226 2004-03-02 00:33:00 But the DOS session isn't finished until any tasks in it are finished . Starting the batch script starts a session . Any processes started by the batch are sub-processes of the first session, which "owns" the resources used by the sub-process . Kill the session, kill the sub-process . Messily .

Even if you have never used real operating systems, haven't you tried to click on the "X "of a DOS window which has a programme started from it?

I will say it again, cls is a DOS command which clears the screen . When the DOS screen is a window under MS Windows, and a cls is the only command in a batch file, it will clear the screen, then the batch file ends . Running the cls doesn't terminate the session . The end of the batch file might .
Graham L (2)
219227 2004-03-03 01:46:00 No need to post any more on this one, Graham L has sumed it up quite nicely.

Thanks everone for your input. :)
dchip (1426)
219228 2004-03-03 03:05:00 > I will say it again, cls is a DOS command which clears the screen. When the DOS screen is a window under MS Windows, and a cls is the only command in a batch file, it will clear the screen, then the batch file ends. Running the cls doesn't terminate the session. The end of the batch file might.

I've used batch files before and the cls command closed the batch window down.
PoWa (203)
1 2