Robocopy commands windows 7
#ROBOCOPY COMMANDS WINDOWS 7 KEYGEN#
Similarly, if security information is to be copied, Robocopy will also monitor the tree for security changes.Ĭonsequently, a user performing an edit and saving a single new file, for example, may cause multiple changes of various types to be reported back to Robocopy. If attributes are to be copied Robocopy will also monitor the tree for attribute changes. This whole process of copying and monitoring is repeated, ad infinitum, until the user manually terminates the Robocopy process.Īs a minimum, Robocopy monitors the source directory tree for changes to file and directory names, sizes, and last write times. When both conditions are met, another Robocopy pass is started. Instead, it enters a loop that performs a normal Robocopy pass and then monitors the source directory tree for changes, until both n changes have been detected and m minutes have elapsed. When Monitoring is specified, Robocopy never terminates. If you only specify one of these switches, the other is assumed to have a value of 1. The /MOT:m switch specifies the minimum time, in minutes, that must elapse before running again. The /MON:n switch specifies the minimum number of changes that must occur before running again. Using the /MON:n and /MOT:m switches you can Monitor the source directory tree for changes, and copy changes as and when they occur. I would guess that /IF would let you include a file of options in addition to the job itself? (In my example, I could have put the /LOG option in a file and included it with /IF.) Just guessing there, though. QUIT parses the options and will complain if you've got something wrong (invalid options, source doesn't exist) but doesn't actually do anything. You can play around with creating a robocopy command on the command line, then when you're happy it's doing what you want, run it again with /SAVE to save the options to a file. NOSD is given because the source is specified in the job file. robocopy /nosd %DEST% /log+:%LOG% /job:sample Here's how you'd use it to copy to the destination specified in the %DEST% environment variable, adding logging to the %LOG% file. It specifies options to copy the c:\Documents and Settings directory of the current machine to an unspecified location. E :: copy Subdirectories, including empty ones. SD:C:\Documents and Settings\ :: Source Directory. Here's a trivial job file, call it sample.rcj: :: Source Directory :