Skip to content

Commit 59a7f44

Browse files
committed
2 parents 5d98fa4 + cc4a1dd commit 59a7f44

3 files changed

Lines changed: 55 additions & 1 deletion

File tree

SystemTester.bat

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,4 +730,8 @@ echo - SystemTest_Detailed_*.txt (full output)
730730
echo - energy-report.html (if power test ran)
731731
echo.
732732
pause
733-
exit /b 0
733+
<<<<<<< HEAD
734+
exit /b 0
735+
=======
736+
exit /b 0
737+
>>>>>>> cc4a1ddc3316036b75a8f819d136b6642df170c4

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

Troubleshooting/TEST_BAT.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)