@echo off set old_cd=%cd% cd %~d0%~p0 java -Xmx256m -Djavax.net.ssl.trustStore=etc\openBIS.keystore -jar lib\openBIS-client.jar %* cd "%old_cd%"