Hi there,
I'm using Windows server 2008 R2 on one of my Pro Env, I have two batch files (See Block code)
Both should run when the user is logged off however only batch file number 1 is working
All setting are the same
any help will be great
P.S I'm straggling around this issue fora while, when running the tasks from cmd both running fine, when running the tasks from the task scheduler while logged on the tasks run fine as well.
The P:\ is a share drive on a nas
Batch 1: set path="C:\Program Files\WinRAR\";%path% cd D:\Xsense Services\Protocol\Logs winrar a -df -ep -agDD-MMM-YYYY-NN Protocol_.rar -x*.txt move *.rar \\xs-nas\Public\XS-App1\PP1 cd "D:\Xsense Services\ProtocolComm3\Logs" winrar a -df -ep -agDD-MMM-YYYY-NN ProtocolComm3_.rar -x*.txt move *.rar \\xs-nas\Public\XS-App1\PP3 cd "D:\Xsense Services\ProtocolZespri\Logs" winrar a -df -ep -agDD-MMM-YYYY-NN ProtocolZespri_.rar -x*.txt move *.rar \\xs-nas\Public\XS-App1\PP2 Exit Batch 2 forfiles /p "P:\XS-App1\PP1" /s /m *.rar /c "cmd /c Del @path" -d -90 forfiles /p "P:\XS-App1\PP2" /s /m *.rar /c "cmd /c Del @path" /d -90 forfiles /p "P:\XS-App1\PP3" /s /m *.rar /c "cmd /c Del @path" /d -90 Exit