Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将 UNC 路径转换为文件 URI.. 对于我的应用程序用户将在测试框中给出这样的 css UNC 路径:
\\egng4573\D$\CSS\Style.css
我怎样才能将其更改为:
file:///D:/CSS/Style.css
这样firefox和IE都可以从所需的路径访问css并应用于它们..请告诉....
在 .NET 中,
let unc = @"\\egng4573\D$\CSS\Style.css"
然后
new System.Uri(unc)
应该这样做。
val it : System.Uri = file://egng4573/D$/CSS/Style.css