New
#1
Run works in bat file but NOT in scheduler
I have a batch file that removes files from a folder on a periodic basis. I created a task in the scheduler to have it run on a daily basis. I'm sure that all the parameters are correct. When I leave it up to the scheduler it fails with a 0x2331 error.
When I run the task from the batch file it runs OK.
When I try to run it from the scheduler it won't run. I have checked the path to the batch file time and again. I know its OK.
When I let the scheduler run normally it doesn't do the removal and returns an error of 0x2331.
I have checked and re-checked all settings. Even compared to an unrelated task that does work.
Any ideas?
Bill