Xcopy User (Windows) by Emerald Green College - Green Institute

xiaoxiao2021-03-06  41

First introduce two most practical combinations

1. Xcopy J: / Counter / .J: / AA / S / E

It means copying J: / counter / directory and file (/ E means the contacted directory is also copy, counter) to J: / AA

2. Xcopy J: / Counter /. J: / AA / T / E

Means only copy J: / counter / directory to J: / aa

/ T Create a directory structure, but does not copy the file. No empty directory or subdirectory. / T / E includes a space directory and subdirectory.

######################################################################################################################################################################################################################################################################################################## #################### Copy the file and directory tree.

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] [/ exclude: file1 [ file2] [ file3] ...]

Source Specifies the file to be copied. Destination Specifies the location and / or name of the new file. / A only copies the file with the archive property set, but does not change the property. / M only copies the file with archived property set and turn off the archive property. / D: M-D-Y Copy files change after the specified date or specified date. If you do not provide a date, only the new files than the target time is copied. / Exclude: File1 [ File2] [ File3] Specifies a list of files with strings. If any string is consistent with the absolute path to be copied, that file will not be copied. For example, specifying a string such as / OBJ / or .Obj to exclude all files under the directory OBJ or a file with .Obj extension. / P Create a prompt before each target file. / S Copy the directory and subdirectories, except for empty. / E Copy the directory and subdirectories, including empty. The same as / s / e. Can be used to modify / t. / V verify each new file. / W Tips You press before copying. / C continues to replicate even if there is an error. / I If the target does not exist, it is replicated more than one file, it is assumed that the target must be a directory. / Q does not display the file name when copy. The complete source and destination file name are displayed when / f replication. / L Displays the file to be copied. / G allows you to copy the encrypted file to the target that does not support the encryption. / H also copies hidden and system files. / R Remove read-only files. / T Create a directory structure, but does not copy the file. No empty directory or subdirectory. / T / E includes a space directory and subdirectory. / U Only files that already exist in the target. / K replicates properties. The general XCOPY will reset the read-only properties. / N is replicated with the short name generated. / O Copy the file ownership and ACL information. / X Copy the file review setting (implicit / O). / Y prohibits prompting to confirm overwriting an existing target file. / -Y leads to the prompt to confirm override an existing target file. / Z Copy the network file with the restart mode.

Command line switch / y can be set in advance in a CopyCMD environment variable. This may be rewritten by / -y on the command line.

转载请注明原文地址:https://www.9cbs.com/read-53044.html

New Post(0)