In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly shows you the "file copy copy command in dos how to use", the content is easy to understand, clear, hope to help you solve your doubts, the following let Xiaobian lead you to study and learn how to use the file copy copy command in dos "this article.
Suppose you need to copy the file d:\ test\ test.txt to the root directory of the D disk, then you can easily do it using copy d:\ test\ test.txt d:\.
Of course, this is the simplest case, in the actual use, will encounter a very complex situation.
If a file named test.txt already exists in the root directory of disk D, the copy command will prompt you whether to overwrite the original file, discard copying or overwrite all files when copying it. If you are in batch copy, all overwrite the original file, then, one by one choice is very troublesome, at this time, you can use without prompt to overwrite the original file parameter / y (equivalent to automatically selecting the Yes option), the complete command is copy / y d:\ test\ test.txt d:\.
If you also need to change the name of the source file when copying, for example, when changing test.txt to 1.txt, you can directly use the command such as copy d:\ test\ test.txt d:\ 1.txt, that is, when you specify the destination path, specify the file name directly, then the new file name is the name after the source file is copied.
If the path you want to copy contains special symbols such as spaces, &, etc., enclose these special characters in quotation marks, such as: copy "d:\ test abc\ test.txt"d:\ t&est"
In addition to the function of "copying" files, the copy command also has a unique skill: merge multiple files into one file, the specific format is: copy file 1 + file 2 + file 3 +. Destination path\ new file name. For example: copy d:\ test.txt+d:\ abc.txt d:\ test\ test.txt, then merge the contents of the test.txt and abc.txt files in the root directory of the D disk into test.txt and save them to the d:\ test directory.
Copy also has some parameters, but the most commonly used ones are the above usage. For more uses, please use copy /? in the command line window. To inquire, it's easy to get started.
It must be noted that copy can only copy files, for folder replication, you need to be smart, use xcopy to copy. Xcopy is an advanced version of copy, with richer parameters, more complex functions, and copy of all-you-can-eat files and folders, which will be introduced separately later and will not be explained here.
The above is all the contents of the article "how to use the copy command to copy files in dos". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.