I am having an issue with a Bat file i am writing.
Image: http://i67.photobucket.com/albums/h308/denash1/files.png
(I am not allowed to post images yet)
The Script in the "EXTRACT_ALL(no_decompression).bat is as follows:
@echo off
for /r %%f in (*.cpk) do (
SET filename=%%~nf)
mkdir %filename%
copy %filename%.cpk .\%filename%
copy CriPakTools.exe .\%filename%
cd %filename%
for /r %%f in (*.cpk) do "CriPakTools.exe" "%%f" ALL
pause
Every-time I run this code it runs fine the first time and it finds the file "725.cpk", it then puts it into the folder 725, and then extracts the content into that folder, which is fine.
But the second time i run it, it still only moves and extract the file 725.cpk and ignores the other CPK file.
Even if I then delete the file "725.cpk" it then complains that the file is missing. Can someone please help me and explain why the .cmd file never checks the other file, which is "110638.cpk", as it is in the same directory?
Thank you very much for your help!