File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7878set " SCRIPT_DIR = %cd% "
7979set " DRIVE_LETTER = %~d0 "
8080
81- :: Locate PowerShell script (supports legacy and _FIXED names)
82- set " SCRIPT_PS1 = "
83- set " SCRIPT_PS1_NAME = "
84- if exist " %SCRIPT_DIR% \SystemTester_FIXED.ps1" (
85- set " SCRIPT_PS1 = %SCRIPT_DIR% \SystemTester_FIXED.ps1"
86- set " SCRIPT_PS1_NAME = SystemTester_FIXED.ps1"
87- ) else if exist " %SCRIPT_DIR% \SystemTester.ps1" (
88- set " SCRIPT_PS1 = %SCRIPT_DIR% \SystemTester.ps1"
89- set " SCRIPT_PS1_NAME = SystemTester.ps1"
90- )
81+ :: Locate PowerShell script (single supported name)
82+ set " SCRIPT_PS1 = %SCRIPT_DIR% \SystemTester.ps1"
83+ set " SCRIPT_PS1_NAME = SystemTester.ps1"
9184
9285:: Check path length
9386for /f %%i in ('powershell -NoProfile -Command " ('%SCRIPT_DIR% ').Length" 2^ > nul ') do set " PATH_LENGTH = %%i "
@@ -249,11 +242,13 @@ set "VERIFY_CODE=%errorlevel%"
249242echo .
250243if " %VERIFY_CODE% " == " 0" (
251244 echo Verification complete. All tools validated successfully.
252- ) else if " %VERIFY_CODE% " == " 2" (
253- echo [WARNING] Verification completed with issues detected. Review output above.
254- echo Use Menu Option 5 to re-download the Sysinternals Suite.
255245) else (
256- echo [ERROR] Verification encountered an issue. Review output above.
246+ if " %VERIFY_CODE% " == " 2" (
247+ echo [WARNING] Verification completed with issues detected. Review output above.
248+ echo Use Menu Option 5 to re-download the Sysinternals Suite.
249+ ) else (
250+ echo [ERROR] Verification encountered an issue. Review output above.
251+ )
257252)
258253echo .
259254pause
You can’t perform that action at this time.
0 commit comments