-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_devsforge_init.cmd
More file actions
37 lines (29 loc) · 947 Bytes
/
run_devsforge_init.cmd
File metadata and controls
37 lines (29 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@echo off
REM ============================================================================
REM Initializer script for run_devsforge.ps1
REM Automatically resolves execution policy issues
REM ============================================================================
setlocal enabledelayedexpansion
cls
echo.
echo ============================================================
echo DEVSFORGE - Execution Policy Initializer
echo ============================================================
echo.
echo Running PowerShell with adjusted execution policy...
echo.
REM Get script path
cd /d "%~dp0"
REM Run PowerShell with RemoteSigned policy
powershell -NoProfile -ExecutionPolicy RemoteSigned -Command "& '.\run_devsforge.ps1'"
REM Capture exit code
set ERRORLEVEL=%ERRORLEVEL%
if %ERRORLEVEL% neq 0 (
color 0C
echo.
echo ✗ Error: Script finished with code %ERRORLEVEL%
echo.
pause
exit /b %ERRORLEVEL%
)
exit /b 0