Skip to content

Instantly share code, notes, and snippets.

@DouglasAntunes
Last active August 1, 2021 17:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DouglasAntunes/7a4111df12e3cde9e968b64130cf8d49 to your computer and use it in GitHub Desktop.
Save DouglasAntunes/7a4111df12e3cde9e968b64130cf8d49 to your computer and use it in GitHub Desktop.
Batch converts files to wav using fsb_aud_extr.exe to converted folder
@ECHO OFF
REM #################################################################################
REM BATCH CONVERT FSB TO WAV LICENSE: MIT
REM #################################################################################
REM Folder Structure:
REM rootFolder/
REM ├── original/ :input for .snd & .igz files
REM │ └── ... (input for .snd & .igz files)
REM ├── converted/
REM │ └── ... (output files)
REM ├── fsb_aud_extr.exe
REM ├── ... (other libs & files)
REM └── Batch Convert FSB to WAV.bat
REM .
REM #################################################################################
REM Created by DouglasAntunes(BlackBurnBR007) https://github.com/DouglasAntunes
REM Find Updates of this script on:
REM https://gist.github.com/DouglasAntunes/7a4111df12e3cde9e968b64130cf8d49
REM #################################################################################
REM .
ECHO ### Converting files to WAV ###
ECHO.
FOR /R .\original\ %%G IN (*.snd *.igz) DO (
fsb_aud_extr.exe .\original\%%~nxG
MOVE %~dp0*.wav %~dp0converted\ > NUL
)
ECHO.
ECHO ## DONE. ###
PAUSE
@Mihanner
Copy link

Mihanner commented Nov 7, 2020

Your code don't move files to converted code.
Change
MOVE %~dp0*.wav %~dp0converted\ > NUL
to
MOVE %~dp0original*.wav %~dp0converted\ > NUL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment