Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Could you please post your robocopy command line(s) and maybe a screenshot how you entered the parameters in your scheduled task? – nixda Jan 18 '13 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 Jan 18 '13 at 0:49

Maybe you can add

>> c:\log.txt

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.