Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Sat Aug 02, 2008 5:04 am Post subject: HOWTO: Determine whether an item is a network drive/shared folder |
|
|
Use the following code to determine whether an item is a network drive/shared folder :
[C#]
if((fileView.FirstSelectedItem.GetAttributes(ItemAttributes.Share) & ItemAttributes.Share)!=0)
{
// Item is network drive/shared folder ....
}
[VB.Net]
If (fileView.FirstSelectedItem.GetAttributes(ItemAttributes.Share) And ItemAttributes.Share) Then
' Item is network drive/shared folder ....
End If |
|