Hello it is my first time using this website so I hope I am not asking the question in wrong format.
Anyways, as the title says I have a similar problem to a thread that was answered a while ago that had the answer but would not work for my computer that is running windows 8.1 when I tried to run it to test it out. I am sure I followed the instructions by changing the path to where the image is located and I was wondering what would I have to change to make it work or if the code is perfectly fine and I probably just mess up somewhere.
dim shell
Set shell = WScript.CreateObject("WScript.Shell")
wallpaper = "C:\path\to\wallpaper.jpg"
shell.RegWrite "HKCU\Control Panel\Desktop\Wallpaper", wallpaper
shell.Run "%windir%\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters", 1, True
I have also tried the original code but I end up getting an error saying the system cannot find the file specified on the last line of code.
Any help will be appreciated!