• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Trying to write a maintance .BAT

makken

Golden Member
hi guys,

I'm trying to write a maintance .bat file to do some computer upkeep while i'm away from home.

Right now, I want it to run the following programs in the following order:
AntiVir -- Update and scan hard drive
Spybot -- Update and scan hard drive
Windows Defragger -- Defrag C

I have all the commands set up, but when I tried to do a test run of the .bat, I got an error for AntiVir saying something along the lines of 'the 16-bit application is attempting to access the hard drive, which is not supported' Also, At the end of the antivirus scan (which didn't take place because AntiVir couldn't load the virus definitions file from the hard drive), It requires me to press enter to end, which effectively pauses the entire batch file. Is there a way around that?

Also I plan on using windows task scheduler to run the .bat, but is it able to wake the computer up from hibernation mode, or only from standby mode? I don't have an automatic turn-on setting in my BIOS, is there another way I can set the computer to turn on at a specific time and date? (don't think I have wake on LAN either)

finally, is there a way to log the output of the bat file?

Thanks
 
Does the AV program command line support a quiet or noprompt switch? perhaps a /q or /nop will let it go through without a key entry.
 
Back
Top