ken_nogi/PAD/Run-Set-WindowsUiPreferences.bat
Kenichiro NOGI 88a402ce0f up
2026-07-10 18:13:30 +09:00

23 lines
452 B
Batchfile

@echo off
setlocal
set "SCRIPT_DIR=%~dp0"
set "PS1=%SCRIPT_DIR%Set-WindowsUiPreferences.ps1"
if not exist "%PS1%" (
echo [ERROR] PowerShell script not found: "%PS1%"
exit /b 1
)
echo Running "%PS1%"...
powershell -NoProfile -ExecutionPolicy Bypass -File "%PS1%" -RestartExplorer %*
set "RC=%ERRORLEVEL%"
if not "%RC%"=="0" (
echo [ERROR] Script finished with exit code %RC%
exit /b %RC%
)
echo [OK] Script finished successfully.
exit /b 0