REM /b - Strip all but filename (size, dates, etc)
REM /A-D - Remove directories
REM /OGEN - Group files/folders
@dir /b /A-D /OGEN>filelist.txt
Useful for making lists of files. Also, if I change the extension the right way, mplayerc treats it like a playlist. :D