Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal
- rem Context: https://old.reddit.com/r/software/comments/16wuuo1/old_qobuz_downloader_software/
- if "%~1" == "" (
- echo Drag and drop onto this batch file,
- echo an audio file or a folder which *directly* contain audio files.
- pause
- goto :eof
- )
- if not exist %1 (
- echo File/folder is not found: "%~1"
- pause
- goto :eof
- )
- 2>nul cd /d %1
- if errorlevel 1 (
- rem file was given
- "%~dp0\ffmpeg.exe" -hide_banner -i %1 -vn -acodec copy -map_metadata 0 -y "%~dpn1 out%~x1"
- if not exist "%~dpn1 out%~x1" (
- echo Non media file was given?
- pause
- )
- goto :eof
- )
- rem folder was given. process WAV files
- set c=0
- for %%A in (*.wav) do (
- set c=1
- "%~dp0\ffmpeg.exe" -hide_banner -i "%%~fA" -vn -acodec copy -map_metadata 0 -y "%%~dpnA out%%~xA"
- )
- if %c% == 0 (
- echo No WAV files in folder: "%~1"
- pause
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement