I have a bit of a simple but annoying problem. I am making a batch file and I am using:
dir /B /S /A:-D *.wad *.mdl *.wav *.spr *.bmp *.tga *.pcx *.mp3 *.txt *.res > sample.res
to get:
C:\Downloads\Sample1.wad
C:\Downloads\Sample2.wav
C:\Downloads\Folder1\Sample3.mdl
C:\Downloads\Folder1\Folder2\Sample4.txt
But what I really want is:
Sample1.wad
Sample2.wav
Folder1/Sample3.mdl
Folder1/Folder2/Sample4.txt
I want the sub folders included but I don't want the full path included. How can I accomplish this? Thanks.
[EDIT: Realized for my purposes I apparently need a FORWARD slash for folders instead of a BACK slash]