win10技巧-提取聚焦(锁屏)壁纸,提取win10锁屏壁纸方法
前言:好多小伙伴觉得win10默认壁纸蛮好看的,想知道如何获取,那么我今天就来教大家提取win10锁屏壁纸方法。
add-type -AssemblyName System.Drawing New-Item "$($env:USERPROFILE)\Pictures\Wallpaper" -ItemType directory -Force; New-Item "$($env:USERPROFILE)\Pictures\Wallpaper\CopyAssets" -ItemType directory -Force; New-Item "$($env:USERPROFILE)\Pictures\Wallpaper\Horizontal" -ItemType directory -Force; New-Item "$($env:USERPROFILE)\Pictures\Wallpaper\Vertical" -ItemType directory -Force; foreach($file in (Get-Item "$($env:LOCALAPPDATA)\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets\*")) { if ((Get-Item $file).length -lt 100kb) { continue } Copy-Item $file.FullName "$($env:USERPROFILE)\Pictures\Spotlight\CopyAssets\$($file.Name).jpg"; } foreach($newfile in (Get-Item "$($env:USERPROFILE)\Pictures\Wallpaper\CopyAssets\*")) { $image = New-Object -comObject WIA.ImageFile; $image.LoadFile($newfile.FullName); if($image.Width.ToString() -eq "1920"){ Move-Item $newfile.FullName "$($env:USERPROFILE)\Pictures\Wallpaper\Horizontal" -Force; } elseif($image.Width.ToString() -eq "1080"){ Move-Item $newfile.FullName "$($env:USERPROFILE)\Pictures\Wallpaper\Vertical" -Force; } } Remove-Item "$($env:USERPROFILE)\Pictures\Wallpaper\CopyAssets\*";输入完成后,我们需要按下回车,会显示类似下方内容
>> Remove-Item "$($env:USERPROFILE)\Pictures\Wallpaper\CopyAssets\*"; 目录: C:\Users\Fantasy\Pictures Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 2019/11/28 10:50 Wallpaper 目录: C:\Users\Fantasy\Pictures\Wallpaper Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 2019/11/28 10:50 CopyAssets d----- 2019/11/28 10:50 Horizontal d----- 2019/11/28 10:50 Vertical经过以上操作以后,我们来找一下获取到的壁纸文件
WIN+R组合键
输入
%userprofile%\Pictures\Wallpaper\其中Horizontal为横屏壁纸Vertical为竖屏壁纸部分精简版系统可能会没有!
周小雨》原创,转载请保留文章出处。
本文链接:https://zxyy.me/post-171.html
版权声明:若无特殊注明,本文为《正文到此结束
管理员已关闭本篇文章评论!