Skip to content

Commit 1c0e4be

Browse files
authored
Create Test.bat
1 parent 58eda35 commit 1c0e4be

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

Test.bat

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
@echo off
2+
title System Tester - Minimal Version
3+
color 0B
4+
5+
:: Skip elevation for testing
6+
cd /d "%~dp0"
7+
8+
:MENU
9+
cls
10+
echo ========================================
11+
echo SYSTEM TESTER MENU - MINIMAL TEST
12+
echo ========================================
13+
echo.
14+
echo If you see this menu, the batch file works!
15+
echo.
16+
echo 1. Try to launch PowerShell script
17+
echo 2. Exit
18+
echo.
19+
set /p "choice=Choose (1-2): "
20+
21+
if "%choice%"=="1" goto LAUNCH
22+
if "%choice%"=="2" goto EXIT
23+
24+
echo Invalid choice
25+
timeout /t 1 >nul
26+
goto MENU
27+
28+
:LAUNCH
29+
echo.
30+
echo Attempting to launch SystemTester.ps1...
31+
echo Location: %~dp0SystemTester.ps1
32+
echo.
33+
if not exist "%~dp0SystemTester.ps1" (
34+
echo ERROR: SystemTester.ps1 not found!
35+
echo.
36+
pause
37+
goto MENU
38+
)
39+
echo File found! Launching with -NoExit so you can see errors...
40+
echo.
41+
pause
42+
powershell.exe -NoExit -NoProfile -ExecutionPolicy Bypass -File "%~dp0SystemTester.ps1"
43+
goto MENU
44+
45+
:EXIT
46+
echo.
47+
echo Exiting...
48+
timeout /t 1 >nul
49+
exit /b 0

0 commit comments

Comments
 (0)