cfgloader batch
This commit is contained in:
File diff suppressed because it is too large
Load Diff
22
ConfigLoader.bat
Normal file
22
ConfigLoader.bat
Normal file
@@ -0,0 +1,22 @@
|
||||
@echo off
|
||||
setlocal EnableExtensions
|
||||
|
||||
set "script_dir=%~dp0"
|
||||
set "ps1_path=%script_dir%ConfigLoader.ps1"
|
||||
|
||||
if not exist "%ps1_path%" (
|
||||
echo [ERROR] ConfigLoader.ps1 not found at %ps1_path%
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo Running ConfigLoader...
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%ps1_path%"
|
||||
set "rc=%errorlevel%"
|
||||
|
||||
if %rc% neq 0 (
|
||||
echo.
|
||||
echo Script exited with error code %rc%
|
||||
pause
|
||||
)
|
||||
|
||||
exit /b %rc%
|
||||
Reference in New Issue
Block a user