Files
elixforms-moduli/export-elx.bat
T
administrator a97cebb064 Scripts
- set minimum PowerShell usage version to 7.4
- replace npx env-cmd with PS Environment option
- move latest downloaded file by Selenium to module folder
- cleanup code
2026-06-18 16:21:15 +02:00

27 lines
789 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 (
echo Using module tag: !UserModuleTag!
set ModuleTag=!UserModuleTag!
)
) ELSE (
echo Using module tag: %~1
set ModuleTag=%~1
)
@pwsh -NoProfile -ExecutionPolicy Bypass -Command .\scripts\export-elx.ps1 -ModuleTag %ModuleTag%
IF DEFINED iscommandline IF NOT DEFINED ispowershell pause
ENDLOCAL