How to generate a logfile using xcopy with task Scheduler - no bat file

0

0

I'm updating some files every day with task scheduler using xcopy. My syntax is

 xcopy "\\networkFolder...\" "c:\folder" /D /Y /E /I > c:\users\name\desktop\logfolder\log.txt

It works perfectly in cmd line but when I take It to task Scheduler nothing happens.

On task shceduler, it also works perfectly without the path for the log > c:\users\name\desktop\logfolder\log.txt copies only the missing or updated files, but I'd like to be reported on the changes. I can't use a .bat file because there's accents on the path

Is this possible?

Hector

Posted 2019-06-05T11:07:55.830

Reputation: 1

Answers

0

I switched to robocopy with /XO and /LOG+ parameters and worked ok. Hate the report format, tho. Thanks everybody

Hector

Posted 2019-06-05T11:07:55.830

Reputation: 1