Read Only File

shers

Well-known member
Joined
Aug 12, 2007
Messages
86
Programming Experience
1-3
Hi,

How can I check if a file in a network drive has only read only permission, before the file gets opened, in VB.NET?

Thanks
 
VB.NET:
If (IO.File.GetAttributes("filepath") And IO.FileAttributes.ReadOnly) = IO.FileAttributes.ReadOnly Then
   'file is readonly
End If
 
Back
Top