Anduril wrote:
> @DJanGo:
> could you plaese explain what this code does? I don't understand a
> single line of it...
If your not using windows its pretty useless to explain?!
And its just a demo for the cmd shell
eg:
-for /f "delims=" %a in ('cd') do set "folder=%~na"- is a way to get the
actua foldername into a variable called "folder" for later usage
If your using filename with tracktitles and one folder is a album:
-for /f "delims=" %a in ('dir /b /O-N') do set "first=%~dpnxa"- would
set a variable called "first" with the first FQFN from that folder
structure.
You see its a quick shoot cause the line must be
-for /f "delims=" %a in ('dir *.mp3 /b /O-N') do set "first=%~dpnxa"- to
only list mp4 files no jpg/png/wtf file:rolleyes:
And
-for /f "delims=" %a in ('dir *.mp3 /b /ON') do set "last=%~dpnxa"-
would do excatly the same for the last file.
-echo %first%>%folder%.m3u- would create a file named like the
foldername and the FQFN from the 1stfile
-echo %last%>>%folder%.m3u- adds the last fqdn filename to that file.
A file with the suffix .m3u with full qualified filenames acts as a
playlist.
That q&d demo should show how to add the first and the last "file" to a
m3u file.
To make that usefull - something more input from your side could be a
starting point.
A simple "hell i do use OS xyz for my living and OS 123 on my LMS Server
and my living system uses a share from my lms" may was your entrypoint
for a real help.
Just "explain it" - even if i cant use it" is something i dont really
like
This is only a demo
------------------------------------------------------------------------
DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516
View this thread: http://forums.slimdevices.com/showthread.php?t=108465
_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter