26 lines
698 B
Batchfile
26 lines
698 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 UserModuleId=
|
|
SET ModuleTag=
|
|
IF "%~1"=="" (
|
|
echo Module ID not specified.
|
|
set /p UserModuleId=Insert module ID:
|
|
IF "!UserModuleId!"=="" (
|
|
echo Module ID is required to extract internals!
|
|
exit /b 1
|
|
) ELSE (
|
|
set ModuleId=!UserModuleId!
|
|
)
|
|
) ELSE (
|
|
set ModuleId=%~1
|
|
)
|
|
|
|
call export-elx.bat "!ModuleId!" && call extract-elx-internals-last-updated.bat
|
|
|
|
IF DEFINED iscommandline IF NOT DEFINED ispowershell pause
|
|
ENDLOCAL
|