1.

Solve : creating m3u playlist with batch?

Answer» <html><body><p>Hello, I'm new here and would like to request help on my playlist. I have search but gotten <a href="https://interviewquestions.tuteehub.com/tag/irrelevantaeur-1051705" style="font-weight:bold;" target="_blank" title="Click to know more about IRRELEVANT">IRRELEVANT</a> topic and thus the creation of this topic.<br/><br/>Scenario:<br/>I found and compiled working batch to <a href="https://interviewquestions.tuteehub.com/tag/create-427332" style="font-weight:bold;" target="_blank" title="Click to know more about CREATE">CREATE</a> m3u playlist and find that it saves in ANSI which means my non-english songs will end up some thing like this ".mp3". How do I get the batch to save my playlist in UTF-8 format which does accept those characters?<br/><br/>My current batch code:<br/> Code: <a>[Select]</a><a href="https://interviewquestions.tuteehub.com/tag/echo-11626" style="font-weight:bold;" target="_blank" title="Click to know more about ECHO">ECHO</a> OFF<br/>SET currentfolder="%cd%"<br/>CD ..<br/>SET upperfolder="%cd%"<br/>IF %upperfolder:~-2,-1%==\ SET upperfolder=%upperfolder:\=%<br/>CALL SET folder=%%currentfolder:%upperfolder:"=%\=%%<br/>CD %folder%<br/>TITLE Generating Playlist for %folder%<br/>ECHO.<br/>ECHO Start time: %time:~0,-3%<br/>ECHO Please wait...<br/>FOR /F "tokens=*" %%A IN ('dir /s /b *.mp3,*.wma,*.<a href="https://interviewquestions.tuteehub.com/tag/flac-462551" style="font-weight:bold;" target="_blank" title="Click to know more about FLAC">FLAC</a>') DO CALL :loop "%%~A"<br/>GOTO end<br/><br/>:loop<br/>SET file="%~1"<br/>CALL SET file2="%%file:*%currentfolder:"=%\=%%"<br/>SET file2=%file2:~0,-1%<br/>setlocal enabledelayedexpansion<br/>&gt;&gt;"%folder:"=%.m3u" ECHO !file2:"=!<br/>GOTO :EOF<br/><br/>:end<br/>ECHO End time: %time:~0,-3%<br/>ECHO <br/>PAUSE<br/><br/>Thanks in advance</p></body></html>


Discussion

No Comment Found