It doesn't run when I schedule as window's task...What is wrong with this robocopy scipts?

hpradhan08 used Ask the Experts™
Hi there,
It doesn't run when I schedule  the followin scipt as window's task...What is wrong with this robocopy scipts? Could you please help?

The OS = Window Server 2008 R2 SP1

:: Backup script to copy database backup files to local Datadomain
:: Updated by:
:: Date
:: Set VARS
set T02_backup=1

:: Check for active backup disks
touch i:\backup
if errorlevel == 1 set T02_backup=0

:: Copy Database Backup files to Datadomain
if %T02_backup% == 1 (

robocopy "souce" "Destination" /-E /NP /LOG:Backup2DataDomain_Log.txt
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Here is a copy of my scripts which works perfectly.

Robocopy.exe "sources" "\destination" /S /R:1 /w:2 /ZB /COPYALL /MIR /SEC /LOG:"c:\robocopy.log" /ETA /TEE

Hope this helps


Hi Noufs,
Thank yo for info.

So you know what these means:
On the last run result, it says the operation being requested was not performed because the user has not logged on to the network. The specified sesrvice does not exist..
Task Scheduler failed to start "\Backup" task for user "VSS-ENG\newbelgium". Additional Data: Error Value: 2147943645.

Please let me know.
On the properties of your scheduled task, on the General tab, do you have the button checked that says, "Run whether user is logged in or not" ?
Maybe you accidentally have it set to run only when the user is logged in.
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!


oh, ok, I'll check that and see. Thanks.


I checked it and it's not checked on 'Run whether user is logged in or not" ... What could be other issue?


ok, thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial