posimai-root/tools/pc-audit/run-audit-share.bat

22 lines
422 B
Batchfile
Raw Normal View History

@echo off
cd /d "%~dp0..\.."
echo.
echo === Posimai PC Audit (Share-Safe) ===
echo.
echo Running audit (share-safe mode)...
call npm run audit:pc:share
if errorlevel 1 (
echo.
echo ERROR: Audit failed.
pause
exit /b 1
)
echo.
echo Opening report viewer...
start "" "%~dp0report-viewer.html"
echo.
echo Done. Select out\latest.json in the browser.
echo This report is safe to share with IT / engineers.
echo.
pause