Ignore:
Timestamp:
04/26/10 12:45:23 (10 years ago)
Author:
curtis
Message:

Fix classpath problem with Windows batch files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/formatlist.bat

    r6182 r6192  
    1414set PROG=loci.formats.tools.PrintFormatTable 
    1515set DIR=%~dp0 
     16if "%DIR:~1%" == ":\" ( 
     17  set DIR1=%DIR% 
     18) else ( 
     19  rem Remove trailing backslash 
     20  set DIR1=%DIR:~0,-1% 
     21) 
    1622 
    1723if "%LOCI_DEVEL%" == "" ( 
     
    2834:found 
    2935rem Library found; try to launch 
    30 java -mx512m -cp "%DIR%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %* 
     36java -mx512m -cp "%DIR1%";"%DIR%bio-formats.jar";"%DIR%loci_tools.jar" %PROG% %* 
    3137goto end 
    3238 
Note: See TracChangeset for help on using the changeset viewer.