1.

Solve : put time condition in .bat file?

Answer»

I create a .BAT FILE to log the WINDOWS startup time under C drive

@echo off
cls
echo Windows Started %date% %time% >> c:\startup.txt

question:
how to ADD a condition, if the time boot to windows is more than 5minutes, then this will generate a statement under log file.

is that possible to do it?

Purpose is to let that user know what time before/after the windows fail to boot up in time (3-4mins). this is good when doing power cycling text for overnight. Because the log file will have MANY lines of date and time.



Discussion

No Comment Found