Robocopy (help please)


  1. kvt
    Posts : 2
    Windows 7 64-bit
       #1

    Robocopy (help please)


    Hi, I have 2 questions which I desperately need help with. Here's the question: 1. robocopy shoud Run in a separate terminal window and recheck file system changes every minute. 2. write a continous logfile that contains all detected file system changes including full pathnames of affected files. How do I do this?
      My Computer


  2. Posts : 6,285
    Windows 10 Pro X64
       #2

    This is one way, put this in a batch file:

    :Start
    robocopy command here
    timeout 120 > nul
    goto Start

    Lots and lots of robocopy parameters, one of which is /log:file (file being the file you want info logged ion). > nul hides the Timeout in n seconds message.
      My Computer


  3. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
       #3
      My Computer


  4. kvt
    Posts : 2
    Windows 7 64-bit
    Thread Starter
       #4

    Ztruker said:
    This is one way, put this in a batch file:

    :Start
    robocopy command here
    timeout 120 > nul
    goto Start

    Lots and lots of robocopy parameters, one of which is /log:file (file being the file you want info logged ion). > nul hides the Timeout in n seconds message.

    I was given this:

    Robocopy should be configured to:

    - Copy the entire file structure, including all subdirectories and files of the source directory ('Files') to a separate target directory ('Files_Backup)

    - Maintain all file information(such as timestamps and ownership) for copied files

    - robocopy shoud Run in a separate terminal window and recheck file system changes every minute

    - write a continous logfile that contains all detected file system changes including full pathnames of affected files.

    *I was told that I could do all this using parameter, can I write this all in just one line and then copy it over into a batch script?

    If you could give me an example to do this?
      My Computer


  5. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
       #5

    Read the tutorial : everything you require is in there.
      My Computer


  6. Posts : 6,285
    Windows 10 Pro X64
       #6

    Golden, great tutorial.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:26.
Find Us