Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
1  
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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.