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

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
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 1