@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. REM You can increase the max amount of memory allocated by the vm if your REM datasets are so large the vm runs out of memory and you have enough REM physical memory to avoid severe swapping. You'll also need to REM modify the argument passed to java in cipres_registry.xml. java -DdefaultDir=%~dp0\..\share\cipres\resources\optional_services ^ -classpath %~dp0\..\lib\cipres\cipres-classpath.jar org.cipres.registry.ServiceInstaller