text
stringlengths
0
834k
goto end
rem lists the contents of %cd% and puts the list in %%a.
rem Then processes the list (%a) and runs the call command for each entry while passing
rem the preselected destination and source to the config file that is created.
rem After that is done it then looks and makes a list of all the config files in the %cd% folder, again as %a.
rem Then it calls the :countnconvert section and converts them while displaying the remaining file count.
:MakeMP4CFG
setlocal
set ""MP4=%~n1""
set ""source=%~dp1""
set ""filename=%~n1""
(
ECHO([Console]
ECHO(inputfile=""%source%\%filename%.arf""
ECHO(media=MP4
ECHO(showui=0
ECHO([UI]
ECHO(chat=1
ECHO(video=0
ECHO(qa=0
ECHO(largeroutline=1
ECHO([MP4]
ECHO(outputfile=""%dest%\%filename%.mp4""
ECHO(width=1440
ECHO(height=768
ECHO(framerate=10
)>""%MP4%.cfg""
exit /b
rem Above is the CFG file template used to create the ARF's CFG file.
:prewmvcfg
cls
setlocal
set cd=%source%
cd /d %cd%
for %%a in (""%cd%\*.arf"") do call:MakeWMVCFG ""%%~a"" ""%dest%"" ""%source%""
for %%a in (""%cd%\*.cfg"") do set /a count +=1
for %%a in (""%cd%\*.cfg"") do call:countnconvert ""%%~a"" ""%source%"" ""%count%"" & set /a count -=1
del *.cfg
goto end
rem lists the contents of %cd% and puts the list in %%a.
rem Then processes the list (%a) and runs the call command for each entry while passing
rem the preselected destination and source to the config file that is created.
rem After that is done it then looks and makes a list of all the config files in the %cd% folder, again as %a.
rem Then it calls the :countnconvert section and converts them while displaying the remaining file count.
:MakeWMVCFG
setlocal
set ""WMV=%~n1""
set ""source=%~dp1""
set ""filename=%~n1""
(
ECHO([Console]
ECHO(inputfile=""%source%\%filename%.arf""
ECHO(media=WMV
ECHO(showui=0
ECHO(PCAudio=0
ECHO([UI]
ECHO(chat=1
ECHO(video=0
ECHO(qa=0
ECHO(largeroutline=1
ECHO([WMV]
ECHO(outputfile=""%dest%\%filename%.wmv""
ECHO(width=1440
ECHO(height=768
ECHO(videocodec=Windows Media Video 9
ECHO(audiocodec=Windows Media Audio 9.2 Lossless
ECHO(videoformat=default
ECHO(audioformat=default
ECHO(videokeyframes=4
ECHO(maxstream=1000
)>""%WMV%.cfg""
exit /b
rem Above is the CFG file template used to create the ARF's CFG file.
:preswfcfg
cls
setlocal
set cd=%source%
cd /d %cd%
for %%a in (""%cd%\*.arf"") do call:MakeSWFCFG ""%%~a"" ""%dest%"" ""%source%""
for %%a in (""%cd%\*.cfg"") do set /a count +=1