Merge multiple text files with the dos command, and combine text files with the dos command

Source: Internet
Author: User

Merge multiple text files with the dos command, and combine text files with the dos command

Author: iamlaosong

There are 30 text files from the trunk line data under the Headquarters system, and you want to convert them into an Excel file by combining the text with the copy command, opening the file with excel, and saving it as an Excel file. The procedure is as follows:

1. Copy all text files to the same folder, click Start> Run, And Enter cmd to open the Command Prompt window and switch to the location where the text files are stored, for example, in the e: \ temp Directory, enter "e:" And press enter, and then press "cd \ temp" to go to the file location. As shown in:


2. Enter "copy *. txt song.txt((song.txt) and press enter to run the command. If there are other files in the directory, you only need to extract the common features of the file name to be merged, such as "copy log *. txt song.txt"

3. Enter the "dir song.txt" command to view the merged text file. As shown in:


4. Open it in excel and save it as an Excel file.

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.