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.

Solved: RoboCopy

Discussion in 'All Other Software' started by Bearrr, Apr 25, 2012.

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

    Bearrr Thread Starter

    Joined:
    Apr 25, 2012
    Messages:
    2
    Having trouble with quotes and folder names with spaces.
    Cannot get it to run w/o an error.

    SET _source=\\fs1\data\shared\"Carolyn Kris Nancy"
    SET _dest=\\fsarchive\archiveshare\"Carolyn Kris Nancy"
    SET _what=/COPY:DATOU /E /MOVE /MINAGE:1095

    ROBOCOPY %_source% %_dest% %_what% %_options%

    I receive this error;
    E:\Batch Move>robobatcharchive
    -------------------------------------------------------------------------------
    ROBOCOPY :: Robust File Copy for Windows :: Version XP010
    -------------------------------------------------------------------------------
    Started : Wed Apr 25 10:35:14 2012
    Source - \\fs1\data\shared"Carolyn\
    Dest - E:\Batch Move\Kris\
    Files :
    Options : /COPY:DAT /R:1000000 /W:30
    ------------------------------------------------------------------------------
    ERROR : Invalid Parameter #3 : "Nancy \\fsarchive\archiveshare"Carolyn Kris Nanc
    y"
    Simple Usage :: ROBOCOPY source destination /MIR
    source :: Source Directory (drive:\path or \\server\share\path).
    destination :: Destination Dir (drive:\path or \\server\share\path).
    /MIR :: Mirror a complete directory tree.
    For more usage information run ROBOCOPY /? or read Robocopy.Doc.
    NOTE: Read "True Replication" in Robocopy.Doc prior to first use of /MIR !
    **** /MIR can DELETE files as well as copy them !
    E:\Batch Move>robobatcharchive
     
  2. Triple6

    Triple6 Moderator

    Joined:
    Dec 26, 2002
    Messages:
    52,823
    First Name:
    Rob
    You need to put the quotes around the entire path:
    "\\fs1\data\shared\Carolyn Kris Nancy"
     
  3. Bearrr

    Bearrr Thread Starter

    Joined:
    Apr 25, 2012
    Messages:
    2
    Thought I tried that earlier, guess not.

    Thank you!
     
  4. Triple6

    Triple6 Moderator

    Joined:
    Dec 26, 2002
    Messages:
    52,823
    First Name:
    Rob
    You're welcome (y)
     
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!

Thread Status:
Not open for further replies.

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

  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