I have a problem with my script. What i want it to do is take the first .m4a file of multiple .m4p files and do faad(it converts the .m4p file to a wave file but keeps the .m4p file),then BEFORE it goes on to the next .mp4 file i want it to do oddenc on the .wave that was newly created via the faad command, this creates an .ogg file.Id then like the script to del the m4a file and the wave file. And Only then move on to the next .m4a file in the dir to convert
Also i need it to do it to multiple folders.
What i have works ,but its messy.First goes through every .m4a file in every folder and creates the wave files, so now i have .m4a files and wave files in every dir, it then further creates an .ogg file in every folder.
So i now have All the .m4ps .wave
s and .ogg`s in the same folders, before they get deleted. It uses lots of space and i think there must be a way of converting each file and deleting it as it goes along
This is what i have so far
for /r %%i in (.m4a) do faad "%%i"
for /r %%i in (.wav) do oggenc "%%i"
for /r %%i in (.m4a) do del "%%i"
for /r %%i in (.wav) do del "%%i"
but i want something like
for /r %%i in (*.mpa) do faad "%%i" (*wav) do oggenc "%%i" (*m4a) do del "%%i" (*wav) do del "%%i"
Is there a way i could achieve this that works, because the above code doent :)