开发者

Getting the current wallpaper file name in Windows 7

开发者 https://www.devze.com 2023-03-31 13:01 出处:网络
Is there any way to get the current wallpaper file name in Windows 7 (perhaps through a dll call) when it\'s shuffling randomly between many wallpapers?

Is there any way to get the current wallpaper file name in Windows 7 (perhaps through a dll call) when it's shuffling randomly between many wallpapers?

I have many backgrounds set to randomly change after a few minutes and I would like to remove ones that come up that I don't like from the list. It would save me a lot of time if I could just ask windows what t开发者_运维技巧he filename of the wallpaper is that it's currently displaying.


I know its a bit old question, but there is another solution to the problem:

@echo off
echo.
echo The path to the current Desktop background image is:
echo.
REG QUERY "HKCU\Software\Microsoft\Internet Explorer\Desktop\General" /v WallpaperSource
pause
exit

Hope it helps to somebody.

BTW: how could I get that return string into parameter of delete?

0

精彩评论

暂无评论...
验证码 换一张
取 消