Merging csv-files via batch
问题 I need to merge a lot small csv-files from different source into separate bigger csv-files Usually I use: for /r E:\MyFolder %%d in (.) do ( copy "%%d\*.csv" "%%d\merge.txt" /B ) This works fine, but for a certain type of csv file, where a new line at the end missing where this won't work correctly. I can use : for %%x in (E:\MyFolder\case1\*.csv) do more "%%x" >>E:\MyFolder\case1\merge.txt But it won't run recursively, only for the top folder, obviously. I tried wrapping the same for loop as