I trying to write a batch file that recursively goes through the directories (taking into account spaces as well) and performs an ImageMagick command. I have the following:
for /R %%a IN (*.png) do mogrify %%a -fuzz 0% -transparent none
Note: this gets stuck with spaces.
I also tried this:
for /R "tokens=*" %%a IN (*.png) do mogrify %%a -fuzz 0% -transparent none
Note: this version doesn't spit an error, but does not modify the contents of the folder.
Any help is appreciated. Kind regards, Alex