Summary: Tired of using the command line switches to convert a song to the Wavpack format? This will make your life a bit easier.
Requirements:
- WavPack
- *.wav file
Code:
@echo off :: ::Set wavpackexe to the path of the WavPack exe on your system. :: set wavpackexe="C:Program FilesWavPackwavpack.exe" :: ::Other Variables :: set target= echo ------------------------- echo WavPack Frontend v0.8 echo ------------------------- echo By Blake Johnson if exist %2 goto alert2files if exist %1 goto pass2 goto pass1 :pass1 echo. echo. echo First of all, where is your file located? echo (Feel free to drag and drop it in this box.) echo. Set /p source=Location of file: cls goto menu :alert2files echo. echo. echo You have selected more than one file, only one file will be used. echo File being used: %1 goto pass2 :pass2 echo. echo. set source=%1 goto menu :menu echo. echo. echo Here are some more options. echo. echo 1. Choose other destination. echo 2. Tag the file. echo 3. Convert to WavPack. echo. echo 4. Exit. set /p option=What option do you want? cls if "%option%"=="1" goto cngtarget if "%option%"=="2" goto tag if "%option%"=="3" goto convert2wv if "%option%"=="4" goto exit cls echo %option% echo. echo. You did not choose a valid option. echo. Please try again. goto menu :cngtarget echo. echo. echo Choose a new destination. (Physical path to file only.) echo USE QUOTES!!! echo. echo To cancel, just press enter. echo. echo. set /p target=Destination: cls goto menu :tag echo. echo. echo Enter the following information for tagging. echo If you leave one blank, it will not exist as a tag. echo. set /p artist=Artist: set /p title=Title: set /p album=Album: set /p year=Year: set /p track=Track #: set /p genre=Genre: echo. echo. echo If the following is not correct, exit the batch file and try again. echo. if not "%artist%"=="" echo Artist: %artist% if not "%title%"=="" echo Title: %title% if not "%album%"=="" echo Album: %album% if not "%year%"=="" echo Year: %year% if not "%track%"=="" echo Track: %track% if not "%genre%"=="" echo Genre: %genre% echo. echo. pause cls goto menu :convert2wv echo. echo. %wavpackexe% -w "Artist=%artist%" -w "Title=%title%" -w "Album=%album%" -w "Year=%year%" -w "Track=%track%" -w "Genre=%genre%" -h %source% %target% :exit exit