Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Refresh Desktop
Has anyone figured out how to "Refresh" the desktop from WinBatch? (This is the right click on the desktop, selecting option "Refresh" from the context menu.)
SHCNE_ASSOCCHANGED=134217728 SHCNF_FLUSH=4096 dllfile=strcat(dirwindows(1),"shell32.dll") DllCall(dllfile, void:"SHChangeNotify", long:SHCNE_ASSOCCHANGED, long:SHCNF_FLUSH,lpnull, lpnull)
If the previous code doesn't work try something like..
mydir = ShortCutDir("Desktop") bb=BinaryAlloc(2048) BinaryPokeStr(bb,0,mydir) dllfile=strcat(dirwindows(1),"shell32.dll") DllCall(dllfile, void:"SHChangeNotify", long:4096, long:1, lpbinary:bb, lpbinary:bb) BinaryFree(bb)
WallPaper(SysParamInfo(115,0,0),0)
mydir = ShortCutDir("Personal") bb=BinaryAlloc(2048) BinaryPokeStr(bb,0,mydir) dllfile=strcat(dirwindows(1),"shell32.dll") DllCall(dllfile, void:"SHChangeNotify", long:4096, long:1, lpbinary:bb, lpbinary:bb) BinaryFree(bb)
Article ID: W13177
Filename: Refresh Desktop.txt
File Created: 2014:02:13:10:23:56
Last Updated: 2014:02:13:10:23:56