1

I am trying to create a .bat file with Robocopy and schedule it using Task Scheduler in Windows 7. The issue that I am having is with the creation of the log file. When I click on the .bat file, a log file is created. When it runs using Task Scheduler no log file is created.

File copying works in both cases. Am I missing something?

2
  • 1
    Could you please post your robocopy command line(s) and maybe a screenshot how you entered the parameters in your scheduled task?
    – nixda
    Commented Jan 18, 2013 at 0:31
  • robocopy "\\XXXXXXXX\PROGRAMS\PRODUCT" "C:\XXXX\XXXXX\Desktop\XXXX\XXXX" /copyALL /tee /s /r:1 /log:"C:\Users\XXXX\Desktop\XXXX\Backup Log.TXT"
    – Chdu
    Commented Jan 18, 2013 at 0:49

1 Answer 1

0

Maybe you can add

>> c:\log.txt

to the end of the command which should output any errors to a logfile.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .