Public Shared Function FileIsSymbolicLink(ByVal path As String) As Boolean Return IIf(((New FileInfo(path).Attributes And FileAttributes.ReparsePoint) = FileAttributes.ReparsePoint),True,False) End Function
public static bool FileIsSymbolicLink(string path) { return ((new FileInfo(path).Attributes & FileAttributes.ReparsePoint) == FileAttributes.ReparsePoint) ? true : false; }