Windows 部分设置文件/文件夹的中文/本地化名称支持

文件夹翻译为本地语言:What the %$#& is up with localized paths in Vista?
powershell 链接文件翻译为本地语言,powershell 都可以实现的话,应该可以找到类似的实现方法:

    $FilePath = "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\Windows Defender Firewall with Advanced Security.lnk"
    $ChildObj = Get-ChildItem $FilePath 
    $FldrName = $ChildObj.DirectoryName 
    $FileName = $ChildObj.Name 
    $Shell    = New-Object -ComObject Shell.Application 
    $Folder   = $Shell.Namespace($FldrName) 
    $File     = $Folder.ParseName($FileName) 
    echo $($Folder.GetDetailsOf($File,0))

1 Like

flow launcher 已支持文件名称翻译 :heart_eyes: