Batch file to defrag the hard drive. Use through the Task Scheduler.
defragit.cmd
echo ---====********====---- >>r:\defrag.log 2>&1
date /t >>r:\defrag.log 2>&1
time /t >>r:\defrag.log 2>&1
defrag r: >>r:\defrag.log 2>&1
If your user account does not have a password you'll need this registry entry to allow scheduled tasks to run under non-password protected user accounts.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
"limitblankpassworduse"=dword:00000000
No comments:
Post a Comment