New
#1
Using Task Scheduler fails to run RoboCopy.
I have set up some RoboCopy tasks that run fine when run from the desktop link, but being forgetful I thought I would try to run them automatically using Task Scheduler. I followed the instructions in the tutorial and all appeared to be fine. However the tasks did not run so I checked them in Task Scheduler and last run stated 'Never'. I then chose to 'Run' them Task Scheduler and got the following dos report:
(The smiley is ColonD at)
REPORT:
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /?
**** /MIR can DELETE files as well as copy them !
C:\Windows\system32>robocopy "C:\Program Files (x86)\Microsoft Money 2005" "K:\M
oney File Backups" /e /np /tee /mt:4 /log+:my_backup_log.txt
2014/01/03 10:25:38 ERROR 5 (0x00000005) Opening Log File C:\Windows\system32\my
_backup_log.txt
Access is denied.
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Fri Jan 03 10:25:38 2014
Source - C:\Program Files (x86)\Microsoft Money 2005\
Dest - K:\Money File Backups\
Files :
Options : /TEE /S /E /COPYAT /NP /MT:4 /R:1000000 /W:30
------------------------------------------------------------------------------
ERROR : Invalid Parameter #7 : "/log+:my_backup_log.txt"
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /?
**** /MIR can DELETE files as well as copy them !
C:\Windows\system32>robocopy "C:\Users\Alan\Documents\Outlook Files" "K:\Outlook
Files - NEW 21 03 2012" /e /np /tee /mt:4 /log+:my_backup_log.txt
2014/01/03 10:25:38 ERROR 5 (0x00000005) Opening Log File C:\Windows\system32\my
_backup_log.txt
Access is denied.
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Fri Jan 03 10:25:38 2014
Source - C:\Users\Alan\Documents\Outlook Files\
Dest - K:\Outlook Files - NEW 21 03 2012\
Files :
Options : /TEE /S /E /COPYAT /NP /MT:4 /R:1000000 /W:30
------------------------------------------------------------------------------
ERROR : Invalid Parameter #7 : "/log+:my_backup_log.txt"
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /?
END.
I entered ROBOCOPY/? in the Win7 search box but got no help screen.
The above only shows a proportion of the commands set up in RoboCopy so I reckon it gave up trying to run and reported only the above errors, only a guess though!
Any suggestions as to what may be wrong based on the above report?
These are some of my RoboCopy lines:
robocopy "I:\DATA" "K:\DATA" /e /np /tee /mt:4 /log:my_backup_log.txt
robocopy "C:\Program Files (x86)\Microsoft Money 2005" "K:\Money File Backups" /e /np /tee /mt:4 /log+:my_backup_log.txt
robocopy "C:\Users\Alan\Documents\Outlook Files" "K:\Outlook Files - NEW 21 03 2012" /e /np /tee /mt:4 /log+:my_backup_log.txt
robocopy "C:\Users\Alan\AppData\Roaming\Mozilla\Firefox\Profiles\00nrkh7f.default" "K:\Mozilla File Backups" /e /np /tee /mt:4 /log+:my_backup_log.txt
robocopy "C:\Program Files\Microsoft Office\Office14\Queries" "K:\Queries Alans Address Book 02.xls" /e /np /tee /mt:4 /log+:my_backup_log.txt
Many thanks
Alan.