Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the DOS command to merge the contents of multiple text files

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail how to use the DOS command to merge multiple text files. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

(1) first of all, rename the more than 100 text files by serial number using the method introduced in "changing file names in batch order" in this book.

(2) in the "Command prompt" window, use the CD command to enter the folder where the novel file is located.

(3) enter the "Copy *. Txt book.txt" command and press enter to execute it.

Later, after opening the folder where the novel file is located, you can see that the size of the newly generated book.txt file is the sum of the size of the more than 100 text files, and the reading order is generated in ascending order, so it is very convenient to read.

Last time look introduced the use of Word documents to merge text files, today look teaches you to use the Dos command, you can also quickly merge text files.

1. Copy all the text documents to the same folder, then click "start → run", type "cmd" to open the command prompt window, and switch to the location where the text files are stored, as shown in the following figure.

2. Enter "copy * .txt c:c.txt" (c:c.txt is the path where the target file is stored and the merged file name), and press enter to run the command, as shown in the following figure.

3. In the pop-up "rewrite c: c.txt?" Enter all, (all for all) and enter to run, as shown in the following figure.

Now all the text files under the E letter have been merged successfully. Now let's open "c:c.txt" and see the effect.

On "how to use the DOS command to merge the contents of multiple text files" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report