Files
bj_power/bj_power_dashboard/uninstall_startup.bat
T

16 lines
660 B
Batchfile
Raw Normal View History

@echo off
rem 移除看板全局开机自启快捷方式(需管理员权限)
chcp 65001 >nul
net session >nul 2>nul
if errorlevel 1 (
echo [错误] 全局移除需要管理员权限:请右键「以管理员身份运行」本脚本;
echo 若用 install_startup_user.bat 注册的,请改用 uninstall_startup_user.bat。
pause
exit /b 1
)
powershell -NoProfile -Command "Remove-Item -Force ([Environment]::GetFolderPath('CommonStartup') + '\bj_power_dashboard.lnk') -ErrorAction SilentlyContinue"
echo [完成] 已移除全局开机自启快捷方式(如存在)。正在运行的看板进程不受影响,需手动关闭。
pause