[英]Windows Server 2012 R2 long file paths not working?
我們有一台安裝了 Windows Server 2012 R2 的服務器,使用 ReFS 來實現 32k MAX_PATH 功能,但它沒有按預期工作,尤其是當您將它與 Windows 10 進行比較時。
如果您在Windows 10
上的Powershell
使用具有很長 UNC 的Test-Path
,請使用以下模式:
Test-Path -Path "\\?\UNC\hostname\share\very\long\path" -PathType Container
它將返回 True,但如果您在Windows Server 2012 R2
發出相同的命令,它將返回 False。 兩個系統都使用最新版本的 Powershell,並且兩個系統都在注冊表中啟用了長路徑。
知道為什么這適用於 Windows 10 而不適用於 Windows Server 2012 R2 嗎?
有一種將PSAlphaFS用於 Windows 10 周年更新機器之前的解決方法。
長路徑支持直到 Windows 10 才被添加到 PowerShell/DotNet。你可以在這里看到長路徑支持被添加到 Windows 10 周年更新中的 PowerShell
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.