I want to dump all the file names in a folder into without extension into a text file and additionally with them all being in one line separated by commas.
So in my folder I have
- File1.bin
- File2.bin
- ....
With
(for %%a in (.\*.bin) do @echo %%~na,) >Dump.txt
I got
File1,
File2,
But what I want in the end is a text file with, so one long combined string.
File1,File2,...
I'm kinda stuck here and probably need something else than echo. Thanks for trying to help.