1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| @echo off
Title convert m3u files
set "InputFile=%~1"
if "%InputFile%"=="" goto error
set "TmpFile=TmpFile.txt"
set "output=ouput.txt"
If exist %TmpFile% Del %TmpFile%
If exist %output% Del %output%
for /f "tokens=5,6 delims==," %%a in ('Type %InputFile%') do ( echo %%~a %%~b )>>%TmpFile%
CMD /u /c Type %TmpFile%>%output%
Start "" %output% & Start "" %TmpFile%
exit
::****************************************************************************
:Error
Mode con cols=80 lines=3
cls & color 0C
echo(
echo Il faut glisser et deposer votre fichier .m3u sur ce batch script
Timeout /T 5 /NoBreak>nul & exit /b
::***************************************************************************** |
Partager