• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 304
  • Last Modified:

simple and fast way to copy files, dirtories and subfolder to a desitination locations

what is the best and simple command to copy all the files/subfolder  from 1 place to the others?

xcopy c:\base_folder /s    y:\base_folder   /y /v

-- I like to copy a folder, with all its files and sub directory, to another driver,  replace the file is exist,
  if folder not exist, will create it,  if folder exist, will replace it,  and then verify if copy complete.
0
mshox1
Asked:
mshox1
  • 2
2 Solutions
 
comphilCommented:
robocopy is my preferred choice (part of Windows 2003 Resource Kit).

Run with /? option to see options.
0
 
comphilCommented:
Robocopy is available at http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

Something along the lines of:

********************
verify on
robocopy C:\base_folder y:\base_folder /E
********************

should do it I think.  It'll create any new folders and files and replace any files that have changed between the source and destination and will show verification.  By default it will not copy any files that have not changed but this can be overridden if needed with /IS.

If you must use Xcopy, I think this will work:

********************
xcopy c:\base_folder  y:\base_folder /e /v /y
********************
0
 
mshox1Author Commented:
thank you very much
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now