source: trunk/tools/bfconvert.bat @ 2686

Revision 2686, 1.0 KB checked in by curtis, 13 years ago (diff)

Add script for converting between file formats.

Line 
1@echo off
2
3rem bfconvert: a batch file for converting image files between formats
4
5rem Required JARs: loci_tools.jar
6
7rem JAR libraries must be in the same directory as this
8rem command line script for the command to function. 
9
10rem If you are a developer working from source and have
11rem the LOCI classes in your CLASSPATH, you can set the
12rem LOCI_DEVEL environment variable to use them instead.
13
14set PROG=loci.formats.ImageWriter
15
16if "%LOCI_DEVEL%" == "" (
17  rem Developer environment variable unset; look for proper libraries
18  if exist loci_tools.jar goto found
19  if exist bio-formats.jar goto found
20  goto missing
21) else (
22  rem Developer environment variable set; try to launch
23  java -mx512m %PROG% %*
24  goto end
25)
26
27:found
28rem Library found; try to launch
29java -mx512m -cp bio-formats.jar;loci_tools.jar %PROG% %*
30goto end
31
32:missing
33echo Required JAR libraries not found. Please download:
34echo   loci_tools.jar
35echo from:
36echo   http://www.loci.wisc.edu/ome/formats.html
37echo and place in the same directory as the command line tools.
38
39:end
Note: See TracBrowser for help on using the repository browser.