Monday, 11 December 2017

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


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?



Answer



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.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...