请教批处理在不关闭explorer的情况下刷新整个系统?
2021-3-7 1335

请教各位,有什么批处理能实现关闭explorer.exe然后重启explorer.exe这样的效果。

就是在不关闭explorer的情况下刷新整个系统?

 

我知道有个rundll32.exe user32.dll等的批处理能刷新桌面,大家还有好的批处理吗?

收藏
点赞
道具卡
分享
最新回复 (4)
  • avatar image
    caocaofff 2021-3-7

    以前收藏的一个小程序,能杀掉explorer进程。

    然后你再使用start %SystemRoot%\explorer启动资源管理器。

    上传的附件:
    • SX.zip (上传时间:2021-03-07 10:50:16,大小:86.65K,下载次数:16)
    官方QQ群:872611894(人少,慎加😜)
  • avatar image
    iscitech 2021-3-23

    重启explorer=先结束再启动explorer

    批处理:

    taskkill /f /im explorer.exe

    start explorer

  • avatar image
    sairen139 2021-3-24
    楼主   4

    @echo off

    reg add "HKCR\Directory\Background\shell\RestartExplorer" /ve /d "重启资源管理器" /f

    reg add "HKCR\Directory\Background\shell\RestartExplorer\Command" /ve /d "cmd /c \"wmic process where \"caption='explorer.exe' and  not commandline like '%%%%factory%%%%'\" call terminate\"" /f这个据说可以重启桌面不关闭资源管理器

  • avatar image
    vntsoli 17天前

    thanks

返回