here is the script I am using at the minute.
Code: Select all
@ECHO OFF
SET currentfolder="%cd%"
CD ..
SET upperfolder="%cd%"
IF %upperfolder:~-2,-1%==\ SET upperfolder=%upperfolder:\=%
CALL SET folder=%%currentfolder:%upperfolder:"=%\=%%
CD %folder%
FOR /F "tokens=*" %%A IN ('dir /s /b *.asf,*.avi,*.divx,*.flv,*.m2ts,*.mp4,*.mpg,*.ogm,*.wmv,*.mp3,*.wma,*.mkv,*.flac, *TS.ifo') DO CALL :loop "%%~A"
GOTO end
:loop
SET file="%~1"
CALL SET file2="%%file:*%currentfolder:"=%\=%%"
SET file2=%file2:~0,-1%
setlocal enabledelayedexpansion
>>"%folder:"=%.m3u" ECHO !file2:"=!
GOTO :EOF
:end
would really appreciate any help given, I have done a bit of script writing with autohotkey but I think batch files would be better for what I want to achieve but I find the coding much more complicated.
thanks, James.