@echo off

set IMPORT_DIR=%1

set IMPORTED=%IMPORT_DIR%\imported

mkdir %IMPORTED%

cd "C:\Program Files\DGCP\Xemelios\Xemelios\root"

for %%f in (%IMPORT_DIR%\*.xar) do echo Import de %%f & java -jar import-batch.jar -u admin -i no -d xemelios.archive -f %%f && move %%f %IMPORTED%

echo Import termine.
@echo on