artemis-portable/assets/aqua-importer.bat

18 lines
460 B
Batchfile

@echo off
REM https://stackoverflow.com/a/16116676
SETLOCAL EnableDelayedExpansion
for /f "Delims=" %%x in (.\scripts\database-tasks-wrapper.ps1) do set "script=!script!;%%x"
SET "artemis_branch=develop"
if "%artemis_branch%"=="develop" (
SET "scriptname=aqua_importer_develop.py"
) else (
SET "scriptname=aqua_importer.py"
)
SET "args=%*"
SET "args=%args:"=\"%"
powershell -noprofile -command "& { %script% }" %scriptname% %args%