我估计应该是结束explorer.exe,刷新注册表吧?
以下是论坛收集的,非原创。Func _Update_Explorer()
Local $bOld = Opt("WinSearchChildren", True)
Local $a = WinList("[CLASS:SHELLDLL_DefView]")
For $i = 0 To UBound($a) - 1
DllCall("user32.dll", "long", "SendMessage", "hwnd", $a[$i][1], "int", 0x111, "int", 28931, "int", 0)
Next
Opt("WinSearchChildren", $bOld)
EndFunc;==>_Update_Explorer
还有一个给你参考,也是论坛收集。#Include <WinAPI.au3>
WinActivate ("[CLASS:CabinetWClass]")
_WinAPI_PostMessage(ControlGetHandle("[CLASS:CabinetWClass]", "", "SysListView321"),256,116,0); 刷新我的电脑
_WinAPI_PostMessage(ControlGetHandle("[CLASS:Progman]", "", "SysListView321"),256,116,0);刷新桌面
|