Need way to set Wallpaper variable??

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Xboxer
Posts: 25
Joined: 27 Nov 2014 13:58

Need way to set Wallpaper variable??

#1 Post by Xboxer » 05 Feb 2015 06:27

Edit: I think I have it figured out now, If not I will update my post
xboxer

rojo
Posts: 26
Joined: 14 Jan 2015 13:51

Re: Need way to set Wallpaper variable??

#2 Post by rojo » 05 Feb 2015 08:13

In Windows XP and earlier, you used to be able to refresh the desktop wallpaper with a rundll32 invocation of a user32.dll function. Not so since Vista. You'll probably have to invoke a PowerShell script. See this page for an example.

Xboxer
Posts: 25
Joined: 27 Nov 2014 13:58

Re: Need way to set Wallpaper variable??

#3 Post by Xboxer » 06 Feb 2015 05:52

I got it running from a batch file now but the powershell script also does the trick as well.
Thanks for your help..xboxer

rojo wrote:In Windows XP and earlier, you used to be able to refresh the desktop wallpaper with a rundll32 invocation of a user32.dll function. Not so since Vista. You'll probably have to invoke a PowerShell script. See this page for an example.

julesverne
Posts: 81
Joined: 19 Nov 2013 00:41

Re: Need way to set Wallpaper variable??

#4 Post by julesverne » 10 Feb 2015 17:53

Would love to know what you came up with in regards to batch, if it's for Win 7.

Post Reply