"Ed Flecko" <(E-Mail Removed)> wrote in message
news

C285CBA-FDF2-4FD8-91A9-(E-Mail Removed)...
> I have a simple batch file (using RoboCopy) that runs fine...if I'm logged
on
> only! I have it as a scheduled task, scheduled to repeat every day, but if
> I'm logged off the box...it won't ever run and displays a "0x10" result
> within scheduled task manager.
>
> The box is: XP-Pro/SP2 with all updates.
>
> Suggestions??? I'm stumped.
>
> Thank you.
It is highly likely that the batch file ***does*** run but
that it does not do what it should because you overlooked
a few things. Modify your batch file as follows, then have
a look at c:\test.log and all will become clear.
@echo off
echo %date% %time% Start of task > c:\test.log
echo User=%UserName%, Path=%path% >> c:\test.log
robocopy /. /. /. etc. 1>>c:\test.log 2>>&1
echo ErrorLevel of robocopy=%ErrorLevel% >> c:\test.log
echo %date% %time% End of task >> c:\test.log
If you still have a problem, show us your batch file!