

InterviewSolution
Saved Bookmarks
1. |
Solve : Win10 shows my old wallpapers yet they are not on my HDD - where are they?? |
Answer» <html><body><p>I want to keep my old wallpapers that windows 10 has stored somewhere, but I'd like to add a few more wallpapers to the folder.<br/>The folder is not on my Computer though, so where does windows store the user wallpapers folder?<br/>Online somewhere?<br/>ThanksHi <br/>Take a tour here <strong><a href="https://www.winhelponline.com/blog/find-current-wallpaper-file-path-windows-10/">find-current-wallpaper-file-path-windows-10</a></strong><br/><br/>And here too <strong><a href="https://confidentialfiles.wordpress.com/2013/12/09/finding-wallpaper-location-in-windows-7-and-windows-8/">Finding wallpaper locations in Windows 7 and later</a></strong> Quote from: Hackoo on July <a href="https://interviewquestions.tuteehub.com/tag/02-256158" style="font-weight:bold;" target="_blank" title="Click to know more about 02">02</a>, 2020, 02:47:44 AM</p><blockquote>Hi <br/>Take a tour here <em><strong><a href="https://www.winhelponline.com/blog/find-current-wallpaper-file-path-windows-10/">find-current-wallpaper-file-path-windows-10</a></strong></em><br/></blockquote> Thanks, yes I saw that, but it only displays the current wallpaper.<br/>My wallpaper is a slideshow with about 20 different pictures.<br/>But I cannot find the folder of all of them anywhere. Quote from: theVenerable on July 02, 2020, 02:59:14 AM<blockquote>Thanks, yes I saw that, but it only displays the current wallpaper.<br/>My wallpaper is a slideshow with about 20 different pictures.<br/>But I cannot find the folder of all of them anywhere.<br/></blockquote> <br/>The classic Desktop Background applet in Windows 10 shows the currently selected desktop background file name with full path.<br/><ul><li>Right-click Start, and click Run to bring up the Run dialog.</li><li>Type the following command and press ENTER</li></ul> Code: <a>[Select]</a>shell:::{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921} -Microsoft.Personalization\pageWallpaper<br/>In Windows 10 this opens the classic desktop background applet, showing the current wallpaper image file and the folder path.<br/><br/><br/> Quote from: Hackoo on July 02, 2020, 03:10:27 AM<blockquote>The classic Desktop Background applet in Windows 10 shows the currently selected desktop background file name with full path.<br/><ul><li>Right-click Start, and click Run to bring up the Run dialog.</li><li>Type the following command and press ENTER</li></ul> Code: <a>[Select]</a>shell:::{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921} -Microsoft.Personalization\pageWallpaper<br/>In Windows 10 this opens the classic desktop background applet, showing the current wallpaper image file and the folder path.<br/><br/><br/></blockquote> <br/>Thanks so much!<br/>I was even able to drag and drop my new wallpaper picture into there.<br/>Here is a Bonus for you <br/>In the attachements ,<strong> Find_current_wallpaper.zip</strong>, You will find 3 files :<br/><ul><li>1 - <strong>Find_current_wallpaper.ps1</strong> ==> Powershell Script .ps1</li><li>2 - <strong>Find_current_wallpaper.vbs</strong> ==> Vbscript to Launch the PowerShell Script .ps1</li><li>3 - <strong>Readme</strong></li></ul><br/>To launch the .ps1 Powreshell script you can use this vbscript :<br/><strong>Find_current_wallpaper.vbs</strong><br/> Code: <a>[Select]</a>'Launches find_current_wallpaper.ps1 script<br/>Set WshShell = CreateObject("WScript.Shell")<br/>WshShell.Run "Powershell.exe -nologo -ExecutionPolicy Bypass -file Find_current_wallpaper.ps1",0,True<br/>Set WshShell = Nothing<br/>The source code of <strong>Find_current_wallpaper.ps1</strong><br/> Code: <a>[Select]</a>Try <br/>{<br/> # Get script name<br/> $ScriptName=(Get-Item $PSCommandPath).Name<br/><br/> # Load Windows Forms and initialize visual styles<br/> # This action is not needed for Windows 8.x<br/> # But a user might run this script on previous versions, just because <br/> [void][System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")<br/> [System.Windows.Forms.Application]::EnableVisualStyles()<br/><br/> # Check Windows verison<br/> $vers=[System.Environment]::OSVersion.Version<br/> If (!(($vers.Major -eq 10) -or (($vers.Major -eq 6) -and ($vers.Minor -ge 2)))) { <br/> $result=[System.Windows.Forms.MessageBox]::Show("This operating system is not supported. This script only supports Windows NT 6.2, 6.3 or 10.x. (i.e. Windows 8, Windows <a href="https://interviewquestions.tuteehub.com/tag/server-11236" style="font-weight:bold;" target="_blank" title="Click to know more about SERVER">SERVER</a> 2012, Windows 8.1, Windows Server 2012 R2 or Windows 10). You seem to be running:`r`r"+[System.Environment]::OSVersion.VersionString, "Script", "OK", "Error");<br/> break;<br/> }<br/><br/> # Initialize counters<br/> $Path_Start_Delta=24 #The offset at which the image path starts<br/> $Path_End_Delta=-1 #The offset at which the image path ends... is still unknown<br/> <br/> # First, access Windows Registry and get the property containing wallpaper path<br/> try {<br/> $TranscodedImageCache=(Get-ItemProperty 'HKCU:\Control Panel\Desktop' TranscodedImageCache -ErrorAction Stop).TranscodedImageCache<br/> }<br/> catch [System.Management.Automation.ItemNotFoundException],[System.Management.Automation.PSArgumentException] {<br/> $result=[System.Windows.Forms.MessageBox]::Show("Windows does not seem to be holding a record of a wallpaper at this time.`r`r"+$Error[0].Exception.Message,"Script","OK","Error");<br/> break;<br/> }<br/> <br/> # Decode the property containing the path<br/> # First, let's assume the path ends at the last byte of $TranscodedImageCache<br/> $Path_End_Delta=$TranscodedImageCache.length-1<br/> <br/> # A sequence of 0x00 0x00 marks the <a href="https://interviewquestions.tuteehub.com/tag/end-239295" style="font-weight:bold;" target="_blank" title="Click to know more about END">END</a> of string. Find it.<br/> # The array that we are searching contains a UTF-16 string. Each character is a little-endian WORD,<br/> # so we can search the array's even indexes only.<br/> for ($i = $Path_Start_Delta; $i -lt ($TranscodedImageCache.length); $i += 2) {<br/> if ($TranscodedImageCache[($i+2)..($i+3)] -eq 0) {<br/> $Path_End_Delta=$i + 1;<br/> Break;<br/> }<br/> }<br/><br/> # Convert the <a href="https://interviewquestions.tuteehub.com/tag/bytes-246802" style="font-weight:bold;" target="_blank" title="Click to know more about BYTES">BYTES</a> holding the wallpaper path to a Unicode string<br/> $UnicodeObject=New-Object System.Text.UnicodeEncoding<br/> $WallpaperSource=$UnicodeObject.GetString($TranscodedImageCache[$Path_Start_Delta..$Path_End_Delta]);<br/><br/> <br/> # Test item's existence<br/> try {<br/> Get-Item $WallpaperSource -Force -ErrorAction Stop | Out-Null<br/> }<br/> catch [System.Management.Automation.ItemNotFoundException] {<br/> $result=[System.Windows.Forms.MessageBox]::Show("Wallpaper is not found at the location Windows believes it is: `r$WallpaperSource", "Script", "OK", "<a href="https://interviewquestions.tuteehub.com/tag/warning-236776" style="font-weight:bold;" target="_blank" title="Click to know more about WARNING">WARNING</a>");<br/> break;<br/> } <br/> <br/> # Wallpaper should by now have been found.<br/> # Present it to the user. If he so chooses, launch Explorer to take him were wallpaper is.<br/> $result=[System.Windows.Forms.MessageBox]::Show("Wallpaper location: `r$WallpaperSource`r`rLaunch Explorer?", "Find Current Wallpaper", "YesNo", "Asterisk");<br/> if ($result -eq "Yes")<br/> {<br/> Start-Process explorer.exe -ArgumentList "/select,`"$WallpaperSource`""<br/> }<br/>}<br/>Catch<br/>{<br/> $result=[System.Windows.Forms.MessageBox]::Show("Error!`r`r"+$Error[0], "Script", "OK", "Error");<br/> break;<br/>}That's Great !<br/>Bit thanks again <br/><br/>Now just a mouse click and I get instant access to the pretty well hidden folder!</body></html> | |