>bat注销重启
@echo off
taskkill /f /im explorer.exe && explorer
pause
>bat 脚本强制刷新桌面
@echo off
@taskkill /im explorer.exe /f
@start explorer.exe
@exit
**扩展** NSIS 安装程序安装成功后强制刷新桌面图标,在打包脚本中加入以下代码
!include "FileFunc.nsh"
${RefreshShellIcons}