Jp2 batch converter for windows

Description
Modified the system commands from Jp2Batch.pl to work on windows systems. Also added a helpful /help explanation and optional /D command to delete the old files.

For how, why and where it is made for: please refer to the wikipage of the original script.

Note: these are some quick adjustments to the original, it may or may not work, depending on your setup. It did work here.

Dependencies

 * This script is a perl script, so you first should go and install that. (www.perl.org)

Please note that the 'convert.exe' executable conflicts with the FAT-to-NTFS batch command of windows. This script will therefor seek a 'imconvert.exe' file in the PATH. Please rename it, or adjust the lines that start with: system("imconvert ...
 * The ImageMagick executables for windows. (www.imagemagick.org)


 * Openjpegs J2K Codec executables, more specifically: image_to_j2k.exe. (www.openjpeg.org)

This can be set trough Right-click My Computer->Properties: Advanced tab->Environment variables.
 * References to all executables in the PATH environment variable.

Arguments
The script takes 2 arguments


 * An optional /D argument, if added the script will also delete the old image files


 * A required directory specified.

Also, it will react on a /help command, which gives about the same info as this page.

Running
Execute this from command prompt, optionally adding a /D argument for also deleting the source images. perl jp2batch.pl [/D] "c:\directory\with\images\"

Credits
Ofcourse almost all credit goes to the original author of this script. I just adjusted a few commands to make it work on Windows systems.