This article is a mirror article of machine translation, please click here to jump to the original article.

View: 14046|Reply: 0

cmd to copy everything under the folder

[Copy link]
Posted on 12/30/2016 12:52:44 PM | | | |




XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W]
                           [/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U]
                           [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z] [/B] [/J]
                           [/EXCLUDE:file1[+file2][+file3]...]

  source specifies the file to copy.
  destination specifies the location and/or name of the new file.
  /A Only copies files with archived attribute sets,
               But do not change the properties.
  /M only copies files with a set of archived attributes,
               and turn off the archive properties.
  /D:m-d-y Copy the file that was changed on or after the specified date.
               If no dates are provided, only copy those
               The source time is newer than the target time.
  /EXCLUDE:file1[+file2][+file3]...
               Specifies a list of files containing strings. per string
               It should be on a separate line in the file. If any
               The string matches any part of the absolute path of the copied file,
               Copying the file is excluded. For example
               Strings such as \obj\ or .obj are specified, respectively
               Exclude all files under the directory obj or with
               .obj extension.
  /P prompts you before creating each target file.
  /s Copy directories and subdirectories, excluding empty directories.
  /E Copy directories and subdirectories, including empty directories.
               Same as /S /E. can be used to modify /T.
  /V to verify the size of each new file.
  /W prompts you to press the key before copying.
  /C continues to copy even if there is an error.
  /i If the target does not exist and you want to copy multiple files,
               then assume that the target must be a directory.
  /Q does not show the file name when copying.
  /F displays the full source and destination file names when copying.
  /L displays the file to be copied.
  /G allows encrypted files to be copied to
               Encrypted targets are not supported.
  /H also copies hidden files and system files.
  /R overrides read-only files.
  /T creates a directory structure, but does not copy the file. No
               Include empty or subdirectories. /T/E included
               Empty directories and subdirectories.
  /U only copies files that already exist in the target.
  /K copy property. Normal Xcopy resets the read-only property.
  /N Copy with the generated short name.
  /O copy file ownership and ACL information.
  /X copy file audit setting (implicit /O).
  /Y to cancel the prompt to confirm that you want to override
               Existing target files.
  /-Y to prompt to confirm that you want to override
               Existing target files.
  /Z Copy network files in rebootable mode.
  /B Copy the symlink itself with the link target.
  /J replication without using buffered I/O. Recommended for copying large files.

The switch /Y can be set in advance in the COPYCMD environment variable.
This may be overridden by /-y on the command line.





Previous:NuGet console common commands
Next:Prevent Windows Server 2008 system login password from being guessed or exploded
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com