Hi Lee and all,
I wrote some scripts a while back to help with zipping / unzipping of karaoke files. I'll post them here in case they help someone. Please note you need to have 7zip.exe installed. Copy & paste the code into a bat file & run it inside the folder you want it to process - Important: it's recursive so will go through each subfolder.
I will suggest that if you don't understand the code, don't run it. If you want to try it out, try it in a test folder.
This will put matching cdg & mp3 files into a zip. i.e. my song.mp3 & mysong.cdg will be placed into a zip called mysong.zip
@ECHO OFF
REM zip cdg & matching mp3 to a zip file with the same name (deletes original file).
REM if no matching file found no action is taken & original file is left in place.
FOR /R %%F IN (*.cdg) DO IF EXIST "%%~dpnF.mp3" pushd "%%~dpF"&"C:\Program Files\7-Zip\7Z.exe" a "%%~nF.zip" "%%~nF.cdg" "%%~nF.mp3" -sdel&POPD
GOTO :eof
This one extracts the contents of the zip file in to the current folder. It will go through each subfolder & extract the zip contents.
@ECHO OFF
REM this file extracts loops through all subfolders & extracts the zip files to their repective directories
SET 7z="C:\Program Files\7-Zip\7z.exe"
SETLOCAL
FOR /R %%f IN (*.zip) DO CALL :process "%%f"
goto :eof
:process
REM pushd
"C:\Program Files\7-Zip\7z.exe" e %1 -o"%~dp1"