Batch scripts - TechRepublic
General discussion
November 1, 2000 at 01:12 AM
steve.doig

Batch scripts

by steve.doig . Updated 25 years, 8 months ago

G’day,

I have a few commands placed in autoexec.bat to append the date and time into a startup log. These will be used to match up shutdown time and dates to see if windows crashes without adding to the log.

The problem are the commands in autoexec.bat:
date >> c:\windows\startup.txt
time >> c:\windows\startup.txt
When autoexec.bat runs, these command require a keyboard command to continue running autoexec.bat (e.g. return). Is there a line of code I can add , such as “Enter”, to make sure autoexec.bat doesn’t require user intervention to continue running.

The other problem is that windows doesn’t shutdown properly, it automatically runs disk doctor in dos. Is there a way to disable this, or set a menu in autoexec.bat to choose between having it off or on, with the default being off?

Thankyou in advance for help.

Cheers.

This discussion is locked

All Comments