Crushing disobedient png's
Wednesday, April 7, 2010 5:00:28 PM
Since Windows 7, throwing shell commands into your registry has changed a bit. For file types, you now have to hunt down HKEY_CLASSES_ROOT\SystemFileAssociations\.ext. (AFAIK, this used to be directly at HKEY_CLASSES_ROOT\.ext.)
Anyhow. To make your single png crumble beneath your cursor, add a key to the .png/shell key and name it "crush". Selecting this new key, double click its default value and name it something like "Crush this PNG". Then add a new key and name it "command". Give this key's default value this baby: (On one line.)
cmd.exe /k "pngcrush.exe -fix -rem allb -rem gAMA -e .new "%0" && del "%0" && ren *.new *.png && exit"
That should be it. Crush away!
PS: What you do to your registry is totally your responsibility!