Title: Oggchan drag & drop conv 1.0 Author: Anonymous Pastebin link: http://pastebin.com/G6CNEUKL First Edit: Saturday 9th of June 2012 12:58:18 AM CDT Last Edit: Saturday 9th of June 2012 12:58:18 AM 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 ::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 ::print the file size so the user can determine whether to continue call :filesizeSong input.ogg ::set /P image=Enter Image Name: call :filesizeImg %1% set /a eval=%imgsize%+%musize% ::commented out check because derp ::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] >> %1% IF NOT [%call%]==[] echo %call% >> %1% type input.ogg >> %1% echo done! pause 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