Windows 7 Robocopy stop creating destination folder

Discussion in 'Programming and Scripting' started by kingjoe, Dec 15, 2010.

  1. kingjoe

    kingjoe New Member

    Joined:
    Dec 15, 2010
    Messages:
    2
    Likes Received:
    0
    Hey guys

    I am using robocopy in windows 7 to upgrade users computers.

    I have it setup to pull users personal documents and such of the old laptop to the new win7 laptop. I do this through the network by setting the old laptops c drive as a network drive z.

    i use this for robocopy to grab the files i need.
    Code:
    robocopy "Z:\Documents and Settings\%user%\My Documents" "C:\Users\%user%\Documents"  /s /z /mir /eta  /xd My*
    The problem is that robocopy creates the folder instead of using the one that is already there.

    Is there a way to stop this from happening.
     
  2. kemical

    kemical Windows Forum Admin
    Staff Member Premium Supporter Microsoft MVP

    Joined:
    Aug 28, 2007
    Messages:
    31,810
    Likes Received:
    1,563

Share This Page

Loading...