So I am trying to a procedure of converting images in a directory, but it just doesn't run at all, and I fail to see what's incorrect in my batch code:
FOR /R %a in (*.png) DO (
files\pngnq -s 1 -n 16 %~fa
ren *nq8.png "%~na.png"
files\gimconv "%~na.png" --format_style psp --format_endian little --pixel_order faster --image_format index4
del "%~na.png"
)
the error it outputs is in french "in was not expected" (in était inattendu).
EDIT: this is the orginal (working code) code:
set file=*.png
files\pngnq -s 1 -n 16 %file%
ren *nq8.png 12345.png
files\gimconv 12345.png --format_style psp --format_endian little --pixel_order faster --image_format index4
del 12345.png
ren *.gim READY4BIT.gim
dirgives you, the volume of disk D: is named blabla – Omarrrio Jan 18 '16 at 19:10/bto thedircommand. Answer updated. – DavidPostill Jan 18 '16 at 19:11