Files
elixforms-moduli/export-and-extract-elx.bat
T

25 lines
693 B
Batchfile

@echo off
SETLOCAL EnableDelayedExpansion
echo %cmdcmdline% | findstr /i /c:"%~nx0" >NUL && set iscommandline=1
echo %PSModulePath% | findstr /i /c:"%USERPROFILE%" >NUL && set ispowershell=1
cd /D "%~dp0"
SET UserModuleTag=
IF "%~1"=="" (
echo Module tag not specified.
set /p UserModuleTag=Insert module tag:
IF "!UserModuleTag!"=="" (
echo Module tag is required to extract internals!
exit /b 1
) ELSE (
set ModuleTag=!UserModuleTag!
)
) ELSE (
set ModuleTag=%~1
)
call export-elx.bat "!ModuleTag!" && call extract-elx-internals.bat "!ModuleTag!"
IF DEFINED iscommandline IF NOT DEFINED ispowershell pause
ENDLOCAL