Thanks!
That helped me solve it, well I actually figured it out to do it as a line like so:
for /F %%I in ("%CD%") do dir /B /O *.mp3 > %%~nI.m3u
Which creates the playlist for all mp3s in a current directory, putting it as 'current-directory-name.m3u' in the directory.
Very cool guys