Here is my concern. I have a folder with multiple .csv files in it, and I want to combine/merge them into one csv file but I need to add the filename of each csv as a column in the .csv itself so I can know which entry came from which csv file in the merged file. I have no experience in coding, however I found some solutions online that were supposed to do this.
The most succint one was this CMD line:
for /f %a in ('dir /b *.csv') do for /f "tokens=*" %b in (%a) do echo %b,%a >> all.csv
I basically navigate to my csv folder in CMD and then enter this line in and it executes, but there is no output, at all. So, I don't know what i'm doing wrong.
Oddly enough, when I execute it in another folder with csv files it works for another csv file. The only difference between that file and the other csv files is that the others (which it doesn't work for) were downloaded from the internet, and this one was created by me.
Can anyone help?
Update: Just checked, when I rename a file it works on it?