-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit_signal_rail.bat
More file actions
51 lines (44 loc) · 1.39 KB
/
Copy pathinit_signal_rail.bat
File metadata and controls
51 lines (44 loc) · 1.39 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@echo off
setlocal
title SIGNAL RAIL BOOTSTRAP
echo SIGNAL RAIL BOOTSTRAP
echo.
echo This launcher starts the bootstrap of a new Signal Rail instance.
echo The real logic lives in init_signal_rail.ps1.
echo.
if not exist "%~dp0init_signal_rail.ps1" (
echo Missing script: init_signal_rail.ps1
pause
exit /b 1
)
set "TARGET_PATH="
set /p TARGET_PATH=Paste the target directory:
set "TARGET_PATH=%TARGET_PATH:"=%"
if "%TARGET_PATH%"=="" (
echo.
echo No directory was entered. Operation cancelled.
pause
exit /b 1
)
echo.
set "PROJECT_NAME="
set /p PROJECT_NAME=Host project name ^(optional^):
set "PROJECT_NAME=%PROJECT_NAME:"=%"
echo.
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0init_signal_rail.ps1" -TargetPath "%TARGET_PATH%" -ProjectName "%PROJECT_NAME%"
set "EXIT_CODE=%ERRORLEVEL%"
echo.
if not "%EXIT_CODE%"=="0" (
echo Bootstrap not completed. Code: %EXIT_CODE%
) else (
echo Bootstrap completed.
echo Recommended next steps:
echo 1. Read 00_runtime_entry.txt first.
echo 2. Read 06_ai_to_ai.txt after entry is valid.
echo 3. Close host project, working object, and mode.
echo 4. Fill 01_orientation.txt and 03_master_working.txt first.
echo 5. Continue from the textual system and use the canonicals by level.
echo 6. Use 97_field_findings.txt only when you want to keep lateral findings readable before routing or discarding them.
)
pause
exit /b %EXIT_CODE%