-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStop-ClaudeDesktop.bat
More file actions
29 lines (27 loc) · 873 Bytes
/
Copy pathStop-ClaudeDesktop.bat
File metadata and controls
29 lines (27 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@echo off
:: Stop-ClaudeDesktop -- clean shutdown launcher
:: Place this file alongside Fix-ClaudeDesktop.ps1 and double-click to run.
set "SCRIPT=%~dp0Fix-ClaudeDesktop.ps1"
if not exist "%SCRIPT%" (
echo.
echo [!] Fix-ClaudeDesktop.ps1 not found.
echo It must be in the same folder as this .bat file.
echo Expected: %SCRIPT%
echo.
pause
exit /b 1
)
echo.
echo Stopping Claude Desktop cleanly...
echo.
powershell -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT%" -Close %*
:: Exit code 1 means the script ran and reported a problem, and it has already
:: said so and waited for a keypress. Only stop here when PowerShell itself
:: could not run it.
if %ERRORLEVEL% EQU 0 exit /b 0
if %ERRORLEVEL% EQU 1 exit /b 1
echo.
echo [!] PowerShell could not run the script (exit code %ERRORLEVEL%)
echo.
pause
exit /b %ERRORLEVEL%