How could I find out the path to the current desktop image?

17

5

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?

Scott Bennett-McLeish

Posted 2011-02-12T09:00:16.257

Reputation: 874

1

Reg: location of files, refer: http://superuser.com/q/207852/4377

– Sathyajith Bhat – 2011-02-12T09:08:43.010

1

Also see this question for Windows 8: http://superuser.com/questions/507571/how-could-i-find-out-the-path-to-the-current-desktop-image-for-windows-8/

– Scott Bennett-McLeish – 2013-03-19T00:31:46.673

Answers

25

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.

echo The path to the current Desktop background image is:

echo.
echo.

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

echo.
echo.

pause

exit

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.

Kerry

Posted 2011-02-12T09:00:16.257

Reputation: 746

This trick does Not work anymore. It always says WallpaperSource REG_SZ C:\WINDOWS\web\wallpaper\Windows\img0.jpg – thenonhacker – 2015-02-24T09:09:20.847

@thenonhacker it still works for me, I'm on Windows 7. – Marv – 2015-06-28T02:09:55.637

The registry key is valid for Windows 10 Anniversary Edition as well. – markrian – 2016-08-26T11:08:25.063

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 – 2012-06-10T10:09:38.557

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: http://superuser.com/questions/507571/how-could-i-find-out-the-path-to-the-current-desktop-image-for-windows-8/

– Scott Bennett-McLeish – 2013-03-19T00:31:12.617

If I remove @echo off it works. Windows 7 ultimate. – Olivier Pons – 2013-10-31T08:33:56.743

13

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.

BloodPhilia

Posted 2011-02-12T09:00:16.257

Reputation: 27 374

Not working in Win 10. Gives the path to a "Transcoded" Wallpaper! – ps95 – 2016-10-12T19:48:41.787

4

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 http://www.winhelponline.com/blog/desktop-background-file-location-right-click-menu-windows-7/

enter image description here

enter image description here

thenonhacker

Posted 2011-02-12T09:00:16.257

Reputation: 446

2

copy "C:\Users\test\AppData\Roaming\Microsoft\Windows\Themes\TranscodedWallpaper" to image.jpg

'test' is your user name, image.jpg is the current image in the slide.

Ruben Rivero

Posted 2011-02-12T09:00:16.257

Reputation: 21

That might save the image, but it does not answert the "How could I find out the path to the current desktop image ?" part. – Hennes – 2016-08-29T12:07:45.417

Please read the question again carefully. Your answer does not answer the original question. – DavidPostill – 2016-08-29T17:59:13.703

Worked for me on Windows 10, thanks! You can then try using "Google Search by Image" to find the original source. – intrepidis – 2017-01-14T11:35:11.183

0

BioniX Background Wallpaper Changer might be your answer:

  1. how can I always display on the screen the image path/filename?

Bionix can show the name of the current wallpaper. But you have to activate "Show wallpaper name on desktop" in Settings:

enter image description here

  1. there is one I really want to see again

Bionix can take you back to any previous image what you had as desktop background (just press the "Previous wallpapers" button):
enter image description here

It can also do the third thing - that you haven't requested but I guess you might need it. It can help you with the image management. For example you can delete (Recycle Bin) with a single click an wallpaper that you don't like, as soon as you see it on your desktop.

Ultralisk

Posted 2011-02-12T09:00:16.257

Reputation: 1 749

0

Windows wallpaper images live in C:\Windows\Web\Wallpapers and you need to give Administrator permission to add, delete or move images.

Keith Grover

Posted 2011-02-12T09:00:16.257

Reputation: 1