I need to refresh the desktop ussing batch is this possible?
I have found the following VBscript that refreshes the containing window however, the desktop needs to be refreahed and its not the containing window
anyways around this?
Set WSHShell = CreateObject("WScript.Shell")
WshShell.SendKeys "{F5}"
thx-
You may try this:
rundll32 user32.dll,UpdatePerUserSystemParameters
Or this:
ie4uinit.exe -ClearIconCache
It is, however, version dependent.
On Win7 this can be done by calling the function "SHChangeNotify" from "shell32.dll". The problem is that AFAIK this function can't be successfully loaded using "rundll32.exe", so instead use a program that can do it.
Use this CLI Refresh Tool from sepago website (32/64 bit images available for download)
DllCall("Shell32\SHChangeNotify", UInt, 0x08000000, UInt, 0, UIntP, 0, UIntP, 0)
DllCall("shell32.dll", "none", "SHChangeNotify", "long", 0x8000000, "uint", BitOR(0x0, 0x1000), "ptr", 0, "ptr", 0)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With