I have no idea why its not working in Task Scheduler because if I run the same code in a batch file it works fine??
I am putting the following into task scheduler on a Win2008 R2 machine and I keep getting a 0x1 result back??
C:\Windows\System32\forfiles.exe /p C:\inetpub\logs\LogFiles /s /m *.log /d -30 /c "cmd /c del @file"
Any ideas how I can get task schedular to play ball? I am running this with highest privalidges ticked?