Думаю я понятно написал




Private Function GetPathType(Path As String) As String
On Error GoTo er
If GetAttr(Path) >= 16 And GetAttr(Path) <= 23 Then
GetPathType = 0 'folder
Else
GetPathType = 1 'file
End If
er:
If Err = 76 Then GetPathType = 2'link
End FunctionСейчас этот форум просматривают: AhrefsBot, Majestic-12 [Bot] и гости: 13