Improve code quality and reliability

- Replace legacy ping delays with modern timeout command across all scripts
- Enhance PowerShell job error handling for better reliability
- Fix typos in error messages for professional appearance

These changes improve script reliability while maintaining
full backward compatibility.
This commit is contained in:
Atanu Roy 2025-09-24 15:25:47 +05:30
parent b74d1155b9
commit 24e0209de9
11 changed files with 120 additions and 24 deletions

View file

@ -140,7 +140,7 @@ echo:
echo Check this webpage for help - %mas%fix_service
echo:
echo:
ping 127.0.0.1 -n 20
timeout /t 20 /nobreak >nul
)
cls
@ -155,7 +155,7 @@ echo:
echo Check this webpage for help - %mas%troubleshoot
echo:
echo:
ping 127.0.0.1 -n 20 >nul
timeout /t 20 /nobreak >nul
popd
exit /b
)
@ -1851,7 +1851,7 @@ if %_wmic% EQU 1 wmic path Win32_ComputerSystem get CreationClassName /value 2>n
if %_wmic% EQU 0 %psc% "Get-CIMInstance -Class Win32_ComputerSystem | Select-Object -Property CreationClassName" 2>nul | find /i "computersystem" 1>nul
if !errorlevel! NEQ 0 (set e_wmispp=WMI, SPP) else (set e_wmispp=SPP)
echo:
echo Error: Not Respoding- !e_wmispp!
echo Error: Not Responding - !e_wmispp!
echo:
)