As this relates to WIN98SE, I'm hoping this is the correct place.......
I use a simple batch file to keep certain junk files generated by certain software under control on the computers I supervise. It has become apparent that people are being lazy and executing the batch files from within Windows rather than in pure DOS, in which case not all the files would be deleted if they were still in use.
I would like to be able to detect, from DOS, if Windows is running, so that I can cause a suitable message to be displayed under these circumstances.
Is this possible - are there any DOS tricks which could be used to detect if Windows is running, and if so, how I could obtain a suitable error level from this.
Many thanks for any help.
Andy.
Regards, Andy.
**************************************
My pathetic attempts at learning HTML can be laughed at here:
I use a simple batch file to keep certain junk files generated by certain software under control on the computers I supervise. It has become apparent that people are being lazy and executing the batch files from within Windows rather than in pure DOS, in which case not all the files would be deleted if they were still in use.
I would like to be able to detect, from DOS, if Windows is running, so that I can cause a suitable message to be displayed under these circumstances.
Is this possible - are there any DOS tricks which could be used to detect if Windows is running, and if so, how I could obtain a suitable error level from this.
Many thanks for any help.
Andy.
Regards, Andy.
**************************************
My pathetic attempts at learning HTML can be laughed at here: