Use the FileSystemInfo.Attributes property which is of type FileAttributes.
The FileAttributes enumeration has a flag FileAttributes.Directory which I
believe is what you are looking for.
HTH, Jakob.
"Kerem Gümrükcü" wrote:
> Hi,
>
> how can i find out, whether a given string specifies a Path or a file...
>
> System.IO.File.Exist(UnknownString) does not work for my
> application. i exactly need to know if the strng is a path or a file...
>
> But how the h*** can i find it out....
>
>
> Thanks in advance....
>
>
> Kerem Gümrükcü
>
>
>
|