1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Robocopy script

Discussion in 'Software Development' started by Bloodyskullz, Jul 15, 2015.

Thread Status:
Not open for further replies.
Advertisement
  1. Bloodyskullz

    Bloodyskullz Thread Starter

    Joined:
    Oct 12, 2006
    Messages:
    480
    Hi All,

    Quick question regarding robocopy. I am not that great in using it but I did manage to figure out that how to do basic copying and mirroring. My main issue is copying over files that have security permissions.

    At this point, I have this:

    Code:
    robocopy c:\foldername e:\foldername /copyall /mir
    What would I add and does it matter where I place the syntax for it to work?

    Help appreciated.

    EDIT: Figured out the security part. How would I get the script to still copy everything in the folder if its being used by someone else or they forgot to close it?

    Thanks.
     
    Last edited: Jul 15, 2015
  2. Squashman

    Squashman Trusted Advisor

    Joined:
    Apr 4, 2003
    Messages:
    19,783
  3. Bloodyskullz

    Bloodyskullz Thread Starter

    Joined:
    Oct 12, 2006
    Messages:
    480
    I am not looking to make a shadow copy but I did end up making the changes to the script.

    Thanks anyways I guess.
     
  4. Squashman

    Squashman Trusted Advisor

    Joined:
    Apr 4, 2003
    Messages:
    19,783
    You asked how to copy a file if it is in use. Robocopy cannot do that by itself.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1151687

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice