I want to dump all the file names in a folder without extension into a text file. They should be 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.