csv file data consolidation

Create a text file (.txt), enter the following code, saved as a bat file , double-click operation :

OFF @echo 
C: 
cd C: \ Data folder CSV 
Copy * .csv target file .csv 
echo operation is complete 
pause

The second line " C: " CMD logo switch in the target disk is C drive, if the file is in the D drive, can be changed to " D: "

Third row " cd C: \ folder CSV data " means data files CSV file into the same folder.

"The fourth line of copy * .csv .csv file target " represents all files in the folder in CSV format (xlsx same applies to the table, but the same data file format requirements and the target file format) file data into the "target .csv file "file

The latter can be ignored written (one is playing LOG, a CMD window to pause, waiting for user)

Guess you like

Origin www.cnblogs.com/Ofdongzi/p/11227795.html