How do I convert a path with a drive letter to a UNC path

前端 未结 3 1756
鱼传尺愫
鱼传尺愫 2021-02-19 21:30

How do I convert a path with a drive letter like W:\\Path\\Share to the equivalent unc path like \\\\server\\Share\\File in .Net?

At the comman

3条回答
  •  萌比男神i
    2021-02-19 22:20

    To answer your question about net use here is a good solution Get UNC Path for Mapped Drive VB.net

    I like the net use way.

提交回复
热议问题