Ok I have like 15,000+ files I need to do this to.
I tried this
my root directory is C:\asf>
the command is: for /r %x in (*.asf) do aifdump -hr "%x" "%CD%"
but the files are going to my root directory and are being overwritten
the syntax for aifdump is aifdump.exe [Option] [ASF_path] [Texture_dump_path]
any method to fix this problem is ok even if you use python or similar thank you for your help
here is a sample if you need it to work with: http://www.mediafire.com/?e9jwa3tkedilcy5
thank you for your help Michael and Bob. when i run the command it does this
C:\asf>for /r %x in (*.asf) do aifdump -hr "%x" "%~dpnx"
C:\asf>aifdump -hr "C:\asf\9\0.asf" "C:\asf\9\0"
Texture 0.dds : 2.00 KB
and then aifdump will crash. i found out that if i make the output folder before
running the command it will work so how would i rework the command to make
the directories needed before running the command for aifdump.
I figured it out i just had to change aifdump -hr to mkdir
again thank you for your help