Hi Everyone,
I have created a simple batch file which uses three 'AT' commands to schedule tasks. The tasks are set to run on a Friday, Saturday and Sunday night respectively at 23:00, and are simply a defrag of the two partitions on my system and a Spyware scan also.
I have included the AT commands below:
at 23:00 /every:f "c:\WINNT\system32\dfrg.exe d: -f"
at 23:00 /every:s "c:\WINNT\system32\dfrg.exe c: -f"
at 23:00 /every:su "c:\program files\microsoft antispyware\giantantispywaremain.exe -scan -withoutui"
The script runs fine and schedules the tasks but if I try and run any of the three immediately I get an error in Event Viewer 7901: The System cannot find the file specified.
The OS I am running is Windows 2000 Professional and to my knowledge both the defragmenter and Spyware software are DEFINATELY in the locations specified above. So I am perplexed as to why "The System cannot find the file specified".
Does anyone have any suggestions as to what could be causing the problem??? And how best to rectify it???
Thank you in advance for your anticipated assistance.
Kind Regards,
Darren King