
答案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