新建txt文档,复制以下代码
@echo off taskkill /im explorer.exe /f ping -n 2 127.0.0.1 > nul start c:windowsexplorer.exe @echo off echo explorer.exe已关闭 taskkill /im explorer.exe /f echo 正在开启explorer.exe start "" "C:WINDOWSexplorer.exe" echo explorer.exe已开启! ping -n 4 127.1>null exit
修改TXT格式为bat