Click or drag to resize

PathLocalToUnc Method

Overload List
  NameDescription
Public methodStatic memberLocalToUnc(String)
[AlphaFS] Converts a local path to a network share path.

A Local path, e.g.: "C:\Windows" will be returned as: "\\MachineName\C$\Windows".

If a logical drive points to a network share path, the share path will be returned instead.

Public methodStatic memberLocalToUnc(String, Boolean)
[AlphaFS] Converts a local path to a network share path, optionally returning it in a long path format.

A Local path, e.g.: "C:\Windows" will be returned as: "\\MachineName\C$\Windows".

If a logical drive points to a network share path, the share path will be returned instead.

Public methodStatic memberLocalToUnc(String, Boolean, Boolean, Boolean)
[AlphaFS] Converts a local path to a network share path, optionally returning it in a long path format and the ability to add or remove a trailing backslash.

A Local path, e.g.: "C:\Windows" will be returned as: "\\MachineName\C$\Windows".

If a logical drive points to a network share path, the share path will be returned instead.

Top
See Also