答案1
我知道我以前在某个地方解答过这个问题! 在此处输入链接描述
这是更新后的代码,添加了纬度,经度, 和高度作为文件夹的可用列,使用图片模板。复制并粘贴到电源外壳窗户:
编辑 2023/08/23:代码现在修改 PIctures、PIcturews.SearchREsults 和 PIctures.Library FolderTypes
$HKLM_FT = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes'
$HKCU_FT = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes'
$PictruesTV = "{b3690e58-e961-423b-b687-386ebfd83239}\TopViews\{00000000-0000-0000-0000-000000000000}"
$PicturesSearchResultsTV = "{4dcafe13-e6a7-4c28-be02-ca8c2126280d}\TopViews\{5586158e-f4e6-409e-b47c-4d216f40b912}"
$PicturesLibraryTV = "{0b2baaeb-0042-4dca-aa4d-3ee8648d03e5}\TopViews\{82ba0782-5b7a-4569-b5d7-ec83085f08cc}"
$CustomTVs = @($PictruesTV, $PicturesSearchResultsTV, $PicturesLibraryTV)
### Copy specified FolderTypes from HKLM to HKCU
$CustomTVs | %{
New-Item -Path (Join-Path $HKCU_FT $_) -Force | Out-Null
$SPlat = @{
'Path' = Join-Path $HKLM_FT $_
'Destination' = Join-Path $HKCU_FT (Split-Path $_)
}
Copy-Item @Splat -force
}
### Modify ColumnList in newly-creaeted HKCU entries
$Find = '(?<=0[A-Za-z\.]+\;)1'
$Replace = '1System.GPS.Latitude;1System.GPS.Longitude;1System.GPS.Altitude;1'
$CustomTVs | %{
$SPlat = @{
'Path' = Join-Path $HKCU_FT $_
'Name' = 'ColumnList'
}
$ColumnList = (Get-ItemPropertyValue @Splat) -replace $Find, $Replace
Set-ItemProperty @Splat -Value $ColumnList
get-process explorer | stop-process
更新:对于那些喜欢 .reg 文件选项的人来说......
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{b3690e58-e961-423b-b687-386ebfd83239}\TopViews\{00000000-0000-0000-0000-000000000000}]
"ColumnList"="prop:0System.ItemNameDisplay;0System.ItemDate;0System.ItemTypeText;0System.Size;0System.Keywords;1System.GPS.Latitude;1System.GPS.Longitude;1System.GPS.Altitude;1System.DateCreated;1System.DateModified;1System.Photo.DateTaken;1System.Image.Dimensions;1System.Rating"
"IconSize"=dword:00000060
"LogicalViewMode"=dword:00000003
"Name"="NoName"
"Order"=dword:00000000