Title: @echo off echo Welcome to V 1.0 of anon's oggchan converter batch file. ::edit Author: Anonymous Pastebin link: http://pastebin.com/Lf9fkLWC First Edit: Wednesday 30th of May 2012 02:32:53 PM CDT Last Edit: Wednesday 30th of May 2012 02:32:53 PM CDT @echo off echo Welcome to V 1.0 of anon's oggchan converter batch file. ::edit this to set the default quality level set q=0.0 ::edit this to set the filepath for dBPoweramp, without quotes set dbpower=C:\Program Files (x86)\Illustrate\dBpoweramp\ setlocal :start set /P song=Enter Song Name: ::sanitize the filename so it works okay ::convert the song with dbpoweramp "%dbpower%coreconverter.exe" -infile=%song% -outfile="%CD%\input.ogg" -convert_to="Ogg Vorbis" -q="%q%" echo Converted %song% to input.ogg ::Hide our input.ogg temp file so we can find it with dir easily attrib input.ogg +s +h ::print the file size so the user can determine whether to continue call :filesizeSong input.ogg set /P image=Enter Image Name: call :filesizeImg %image% set /a eval=%imgsize%+%musize% IF [%eval%] GEQ [3000] goto :toobig IF [%eval%] LSS [3000] echo Combined Filesize of %eval% kB is under 3mb! set /P call=Enter Call Name: IF [%call%]==[] echo [1] >> %image% IF NOT [%call%]==[] echo %call% >> %image% type input.ogg >> %image% echo done! endlocal goto :eof   :dequote setlocal rem The tilde in the next line is the really important bit. set thestring=%~1 endlocal&set ret=%thestring% goto :eof   :filesizeSong setlocal set tmp=%~z1 set tmp2=1024 set /a answer= %tmp% / %tmp2% echo input.ogg is %answer% kB endlocal&set musize=%answer% goto :eof :filesizeImg setlocal set tmp=%~z1 set tmp2=1024 set /a answer= %tmp% / %tmp2% echo %image% is %answer% kB endlocal&set imgsize=%answer% goto :eof   :toobig setlocal echo Uh oh. It looks like the combined filesize of your song and your image would be more than 3 mb. set /P q=Enter new q value in the form (-)X.Y (minimum -1.0): goto :start endlocal goto :eof