Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Windows 7 displaying random images every minute from all of my photo directories and every so often there is one I really want to see again.

How can I either always display on the screen the image path/filename? Or perhaps I could simply look at a registry setting or something at the time the image is being displayed to find out the image path / filename?

share|improve this question
Reg: location of files, refer: – Sathya Feb 12 '11 at 9:08
Also see this question for Windows 8:… – Scott Bennett-McLeish Mar 19 '13 at 0:31
up vote 19 down vote accepted

I am not sure if this works on every version of Windows 7 but on my Windows 7 Ultimate 64-bit it does. I also did not test this out when changing themes. If I manually changed the background picture or select a folder of pictures to slideshow through then the registry value that I query below seems to always be updated with the path to the current image.

There are several ways to make this better (like automatically opening Windows Explorer to the folder the picture is in or launching the picture directly) but this could get you started.

I created a batch file on my Desktop named path2pic.bat and had the following code in there:

@echo off


echo The path to the current Desktop background image is:


REG QUERY "HKCU\Software\Microsoft\Internet Explorer\Desktop\General" /v WallpaperSource




Then I created a shortcut to the batch file, assigned a Shortcut Key like Ctrl+Shift+P to it, and any time I want to know the path to the image I press the Shortkut Keys and the batch file shows me the path.

share|improve this answer
Yep that works great. Thanks. – Scott Bennett-McLeish Feb 13 '11 at 3:42
Great, well done! I'd just remove the final exit call, so to keep the console open. In the likely scenario where wallpaper changes from time to time, if you inadvertently press a key and then wallpaper changes, the info is lost. – superjos Jun 10 '12 at 10:09
A while back I posed the same question for Windows 8 after migrating to it. There's a different answer so worth taking into consideration:… – Scott Bennett-McLeish Mar 19 '13 at 0:31
If I remove @echo off it works. Windows 7 ultimate. – Olivier Pons Oct 31 '13 at 8:33
This trick does Not work anymore. It always says WallpaperSource REG_SZ C:\WINDOWS\web\wallpaper\Windows\img0.jpg – thenonhacker Feb 24 '15 at 9:09

The path to the current Wallpaper is located in the following register key:

HKEY_CURRENT_USER\Control Panel\Desktop\Wallpaper 

Open the start menu and in the search box, type "regedit". Navigate to the above key throught the registry explorer on the left. When you single click the "Desktop" folder, at the right, a list with keys will be displayed. Look for the one that's titled "Wallpaper". The value will be the location of the current wallpaper.

share|improve this answer

Here's a solution that locates the current wallpaper and show it in Windows Explorer:

How to Add “Desktop Background File Location” Option to Desktop Right-Click Menu in Windows 7

enter image description here

enter image description here

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .