Hi trying to write a script that updates the wallpaper in Vista.
Change the registry then try and force a refresh but nothing happens only works afetr rebooting.
Have tried
oShell.Run sWinDir & "\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters", 1, True
which used to work in XP but no good on Vista.
Have also tried the following
Set onShell = createobject("shell.application")
Set oDesktop = onShell.Namespace(0)
oDesktop.self.invokeVerb "R&efresh"
&
Set UIHelper = CreateObject("Shell.UIHelper")
UIHelper.RefreshOfflineDesktop
&
Set expNameSpace = CreateObject("ShellNameSpace.ShellNameSpace")
'expNameSpace.Synchronize
Anyone done this in Vista?
TIA
Change the registry then try and force a refresh but nothing happens only works afetr rebooting.
Have tried
oShell.Run sWinDir & "\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters", 1, True
which used to work in XP but no good on Vista.
Have also tried the following
Set onShell = createobject("shell.application")
Set oDesktop = onShell.Namespace(0)
oDesktop.self.invokeVerb "R&efresh"
&
Set UIHelper = CreateObject("Shell.UIHelper")
UIHelper.RefreshOfflineDesktop
&
Set expNameSpace = CreateObject("ShellNameSpace.ShellNameSpace")
'expNameSpace.Synchronize
Anyone done this in Vista?
TIA