Help on robocopy

Emm 1 Reputation point
2022-10-09T07:51:27.75+00:00

So i'm new in using Robocopy to copy files but as i used it i can't copy all the events and whatnot after its complete because i can't scroll all the way up on where i started the command so is there a way i could know the events or what happened after Robocopy is complete?

Tried using this command

/LOG+:C:\example

but i'm having an Invalid Parameter #11 did i do something wrong or missed something? and what's the difference between /LOG:file and /LOG+:file?

Windows for business Windows Client for IT Pros User experience Other
{count} votes

7 answers

Sort by: Most helpful
  1. Andreas Baumgarten 123.4K Reputation points MVP Volunteer Moderator
    2022-10-09T10:25:59.187+00:00

    Hi @Emm ,

    /L -> Specifies that files are to be listed only (and not copied, deleted, or time stamped).
    https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy#logging-options

    What happens if you don't use the /L ?

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    1 person found this answer helpful.
    0 comments No comments

  2. Andreas Baumgarten 123.4K Reputation points MVP Volunteer Moderator
    2022-10-09T08:50:37.483+00:00

    Hi @Emm ,

    /LOG:file -> "Writes the status output to the log file (overwrites the existing log file)."
    /LOG+:file -> "Writes the status output to the log file (appends the output to the existing log file)."
    Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy#logging-options

    You tried /LOG+:C:\example but this looks like a folder. You need to provide a filename, for instance /LOG+:"C:\example\mylog.log"

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments

  3. Emm 1 Reputation point
    2022-10-09T09:23:40.717+00:00

    Still confused on how it works my original plan was to use this

    /log+:C:\Users****\Downloads\loggy

    I'm confused on the filename part

    0 comments No comments

  4. Andreas Baumgarten 123.4K Reputation points MVP Volunteer Moderator
    2022-10-09T09:34:26.073+00:00

    Hi @Emm ,

    what is *** ?

    If you use /LOG+:"C:\Junk\loggy" robocopy will create a file loggy (without a file extension) if not exist and writes the log information to the loggy file in folder C:\Junk
    If the file loggy already exists in C:\Junk the log information will be added to the loggy file.
    If a folder C:\Junk\loggy exists, the /LOG+:C:\Junk\loggy will fail because robocopy couldn't add the log information to a folder.

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments

  5. Emm 1 Reputation point
    2022-10-09T10:18:04.087+00:00

    Sorry about that **** was my username

    So anyway, I tried this

    /LOG+:"C:\Users\Junk\Downloads\logggy\Mylog.log"

    It made a text document that has all the logs of the things that I want to copy but I'm confused on why there was nothing on my destination folder C:\Users\Junk\Downloads\NewFFF\

    My goal was to copy my files and have a log file so I could double check Here is the command I used

    ROBOCOPY "D:\FileHistory\junk\DESKTOP-12345\Data\C\Users\junk\Documents\backupss" "C:\Users\junk2\Downloads\NewFFF" /E /ZB /COPYALL /R:2 /L /X /V /TS /FP /ETA /LOG+:"C:\Users\junk2\Downloads\logggy\Mylog.log" /TEE

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.