Desktop Background Slideshow is a neat little feature in Windows 7 which helps you shuffle your desktop background from a image file store folder, at predefined intervals. But, as Windows doesn’t show the file name of the currently displayed wallpaper, it becomes a problem if you have thousands of images in a store folder and you need to find the file name and the directory location of the currently displayed wallpaper.
Here is a small script which adds the Desktop Background File Location option in the Desktop context menu, which opens the current wallpaper file’s target folder and selects the file.
1. Download WPTargetDir.zip, unzip and extract the contents to a folder.
2. Move the file WPTargetDir.vbs to the Windows directory.
3. Double-click Add.reg to add the context menu option.
4. Hold the SHIFT key down and right-click on an empty area in the Desktop. You’ll see the Desktop Background File Location option.

Selecting this option gets the current wallpaper file name from the registry, opens the target folder and selects the image file.

To remove/uninstall this option, run the file undo.reg, and then manually delete WPTargetDir.vbs manually from the Windows folder.
More Information
The script queries the wallpaper source file name from the following registry key:
The information is stored in a string value named WallpaperSource
Bookmark this Page!
Related Posts
- Using the Desktop Background Slideshow Feature in Windows 7
- Cannot Change the Desktop Wallpaper – Fix
- Activate the Desktop Background Slideshow Feature in Windows 7 via Explorer
- Utility: Windows 7 LogonUI Background Changer Is Released
- Prevent Desktop Background (Wallpaper) Change When Applying a Desktop Theme
- Open an Elevated Command Prompt From the Desktop Context Menu
- Windows 7 Lets You Change the Logon Background Image
- John’s Background Switcher: Change Desktop Wallpaper at Predefined Intervals
- Wallpaper Changer PowerToy Does Not Work Under Limited User Accounts
- Utility: Logon Changer for Windows 7 Is Released
If you enjoyed this post, make sure you subscribe to our RSS feed! We feature Tips, Troubleshooting information, Scripts and Utilities for Microsoft Windows Operating Systems!
Prefer an E-mail subscription?

› 
[...] can get this by a small script created by WinHelpOnline which adds this option to context menu in desktop. This script opens the current wallpaper file’s [...]
UPDATE: I ran regedit as administrator and used the “import” feature to import the reg file. It’s working like a charm now.
Thanks for sharing this great tweak.
Ramesh, yes please…and even better, share it with everyone. :) Thanks..
I’m somewhat disappointed that I’m the only one raising this concern….
Just goes to show you how “insecure” most Windows users are…
This particular tweak is incredibly useful. Thanks Ramesh your blog is very helpful. I love your reg/scripted tweaks.
@Scott: With a little change in the .REG file, you can make it work for limited users as well. Replace HKCR paths with HKCU\Software\Classes, save the file and merge it. And the path to the script file is to be changed as well. I can send one to your mail id if you need it.
You might want to remind users that making a mod to the registry requires you be logged into an Administrator account…
My regular account has no such rights…..
@raveren: Try: http://www.winhelponline.com/blog/error-there-is-no-script-engine-for-file-extension-when-running-vbs-files/
—————————
Windows Script Host
—————————
There is no script engine for file extension “.vbs”.
—————————
OK
—————————
No worky