19
5
I ran into a little snag trying to get only the filenames (no extensions or file paths) recursively.This worked for me in the root folder:
dir /b
But when i added /s to scan recursively i also got file paths before filenames which i do not want. Is there a way to get bare filenames from all subfolders in a directory?
Im on Windows 7 x64 I'd rather use regular command prompt not PS or VBS
Could you explain this? To me it makes little sense. – Simon Sheehan – 2011-11-08T23:27:26.433
4This doesn't work, /a doesn't work like that - it's a filter for which type of files you want to list. It doesn't strip the path from the filename when doing a recursive directory listing. – Gaff – 2011-11-09T02:28:55.780
edited the answer; and just got my hands on a windows box again, I think this time should do it (win732bit) – Nik So – 2011-11-09T05:27:17.180