@echo off REM This is just the coolest! %~dp0 is called a "batch parameter modifier" REM and it is the full path of the directory where this batch files is located. REM Doesn't work on windows 98 and earlier. FOR /F "usebackq delims==" %%i IN (`java -classpath "%~dp0\..\lib\cipres\cipresapp-1.0.1.jar" org.cipres.jni.JavaLibPath`) DO SET JAVA_LIB_PATH="%~dp0\..\lib\cipres:%%i" java -Djava.library.path="%JAVA_LIB_PATH%" -ea -classpath %~dp0\..\lib\cipres\cipres-classpath.jar org.cipres.util.PropertiesApp