开发者

UNC path to File URI

how to convert UNC path开发者_运维百科 to File URI.. For my application user will give css UNC path like this in test box :

\\egng4573\D$\CSS\Style.css

how can i change it to :

file:///D:/CSS/Style.css

so that firefox and IE both can access css from the desired path and apply on them.. please tell....


In .NET,

let unc = @"\\egng4573\D$\CSS\Style.css"

then

new System.Uri(unc)

should do it.

val it : System.Uri = file://egng4573/D$/CSS/Style.css
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜