Batch conversion with xbadpdec?

Doubts, help and support about QuickBMS and other game research tools
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Batch conversion with xbadpdec?

Post by Acewell »

Hi, i used Aluigi's unxwb to extract the files from common.xwb in Star Wars The Clone Wars (Xbox 2002).
I now have 354 wav files that can be converted to playable wav files or played using Aluigi's awesome xbadpdec.exe.
I was wondering if someone here knows how to make a batch file to convert all 354 files at once. Thanks!
deepshit
Posts: 22
Joined: Fri Aug 08, 2014 6:24 am

Re: Batch conversion with xbadpdec?

Post by deepshit »

Code: Select all

for %%G in ("%~dp0"\*.wav) do xbadpdec "%%G" "new_%%~nxG"


put xbadpdec.exe and files and bat in one folder.
haven't tested it.
If it didn't work give me one file to test.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Batch conversion with xbadpdec?

Post by Acewell »

Awesome thanks a lot! :D

It works, but it goes into an endless loop converting the same files over and over with a different name, for example:
00000000.wav > new_00000000.wav > new_new_00000000.wav > new_new_new_00000000.wav > new_new_new_new_00000000.wav

This isn't a big deal though, you can just stop it manually after the first complete loop and delete any unneeded files.