DOS Copy command usage instructions

Source: Internet
Author: User
Tags root directory

Copy in English is the meaning of copying, the so-called copy is the original file and there is no change, to reproduce a content and the original document without any differences in the file. The following is the format of the copy command and some questions to note:

Now let's take a look at an example where there is a file called Autoexec.bat in the root directory, and if we want to copy it to a name called Autoexec.old, we can enter: Copy autoexec.bat autoexec.old type dir, In addition to the original Autoexec.bat file, a Autoexec.old file appears, and the size of the two files is the same.

If we want to copy the DOS directory edit.com to the current directory, typing from the keyboard: copy c:\dos\edit.com (note, omitted the destination directory name and file name), the source file name is the C-packing directory in the DOS directory of edit.com files. The drive and directory are indicated here, and the destination file is omitted, which means that the file is copied to the current directory with the name unchanged and edit.com.

If you want to copy the file to another drive, for example, copy it to a disk, you can enter: Copy edit.com A: (Remember to insert a disk into drive a).

The copy command can also use wildcards, such as copying all the files on a disk that start with K, and entering copy a:k*.* to copy the copy C:\*.bat c:\zht if you want to duplicate all files in the C-packing directory that are bat to the ZHT directory. This article is published in http://bianceng.cn (computer science)

The main purpose of copying files is two, one is for important documents to make a backup, lest be deleted after the regret; the second is to exchange information between different computers, you can copy your work to a floppy disk, to your boss, colleagues, you can take it home. The last thing to mention is that there is no difference between copying and reproducing files, and copies are copy-transliteration.

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.