@echo off

:: updatesolrserver.bat

:: send an update message to a running solr server, 

:: $Id: updatesolrserver.bat

setlocal

::Get the current batch file's short path

for %%x in (%~f0) do set scriptdir=%%~dpsx

for %%x in (%scriptdir%) do set scriptdir=%%~dpsx



if EXIST %scriptdir%SolrMarc.jar goto doit

pushd %scriptdir%..

for %%x in (%CD%) do set scriptdir=%%~sx\

popd



:doit

::echo BatchPath = %scriptdir%



java -Dsolrmarc.main.class="org.solrmarc.tools.SolrUpdate" -jar %scriptdir%SolrMarc.jar %1

