Xcopy command tutorial

Source: Internet
Author: User
Attrib displays or changes file attributes. Attrib [+ R |-R] [+ A |-A] [+ S |-S] [+ H |-H] [[drive:] [path] filename] [/s [/d] + set attributes. -Clear attributes. R read-only file attributes. A. archive file attributes. S system file attributes. H. Hide the file attributes. [Drive:] [path] [filename] specifies the file attribute to be processed. /S processes matching files in the current folder and Its subfolders. /D also processes folders. Rd deletes a directory. Rmdir [/S] [/q] [drive:] pathrd [/S] [/q] [drive:] path/S except the directory, all subdirectories and files under the specified directory will also be deleted. Used to delete a directory tree. /Q quiet mode. When deleting a directory tree with/s, you do not need to confirm that MD creates a directory. Mkdir [drive:] pathmd [drive:] path if the command extension is enabled, mkdir will change as follows: if necessary, mkdir will create a level directory in the path. For example, if \ A does not exist, mkdir \ A \ B \ c \ D is the same as mkdir \ A chdir \ a mkdir B chdir B mkdir C chdir C mkdir D. If the extension is disabled, type mkdir \ A \ B \ c \ D. Del deletes one or more files. Del [/P] [/F] [/S] [/q] [/A [[:] attributes] nameserase [/P] [/F] [/S] [/q] [/A [[:] attributes] names specifies one or more files or directories. Wildcard characters can be used to delete multiple objects. If a directory is specified, all files in the directory will be deleted. /P prompts confirmation before deleting each file. /F force Delete read-only files. /S deletes the specified file from all subdirectories. /Q quiet mode. Confirmation is not required when deleting a global wildcard. /A select the file to be deleted based on the attribute. Attributes R read-only file S System File h hide file a archive file-Prefix indicating "no" if the command extension is enabled, Del and erase will change as follows: the display syntax of the/s switch is reversed, that is, only deleted files are displayed, but not files that cannot be found. COPY Copies one or more files to another location. Copy [/d] [/V] [/n] [/Y |/-y] [/Z] [/A |/B] source [/A |/B] [+ source [/A |/B] [+...] [destination [/A |/B] source specifies the file to be copied. /A indicates an ASCII text file. /B indicates a binary file. /D allows decryption of the target file to be created. Destination specifies a directory and/or file name for the new file. /V verify that the new file is written correctly. /N when copying a file with a non-8dot3 name, try to use a short file name. /Y does not use the prompt to confirm whether to rewrite the existing target file. /-Y indicates whether to rewrite the existing target file. /Z: Use the restart mode to copy connected files. The command line switch/y can be preset in the copycmd environment variable. This may be replaced by/-y on the command line. Unless the Copy command is executed in a batch file script, the default value should be a prompt during rewriting. To attach a file, specify a file for the target and specify several files for the source (using wildcards or file1 + file2 + file3 format ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.