forked from ome/bioformats
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshowinf.bat
More file actions
47 lines (38 loc) · 1.27 KB
/
Copy pathshowinf.bat
File metadata and controls
47 lines (38 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@echo off
rem showinf.bat: a batch file for displaying information about a given
rem image file, while displaying it in the image viewer
rem Required JARs: loci_tools.jar
rem JAR libraries must be in the same directory as this
rem command line script for the command to function.
rem If you are a developer working from source and have
rem the LOCI classes in your CLASSPATH, you can set the
rem LOCI_DEVEL environment variable to use them instead.
set PROG=loci.formats.tools.ImageInfo
set DIR=%~dp0
if "%DIR:~1%" == ":\" (
set DIR1=%DIR%
) else (
rem Remove trailing backslash
set DIR1=%DIR:~0,-1%
)
if "%LOCI_DEVEL%" == "" (
rem Developer environment variable unset; look for proper libraries
if exist "%DIR%loci_tools.jar" goto found
if exist "%DIR%bio-formats.jar" goto found
goto missing
) else (
rem Developer environment variable set; try to launch
java -mx512m %PROG% %*
goto end
)
:found
rem Library found; try to launch
java -mx512m -cp "%DIR1%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %*
goto end
:missing
echo Required JAR libraries not found. Please download:
echo loci_tools.jar
echo from:
echo http://www.openmicroscopy.org/site/products/bio-formats/downloads
echo and place in the same directory as the command line tools.
:end