Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Directory Permissions
Message
From
19/05/2003 14:35:32
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Directory Permissions
Miscellaneous
Thread ID:
00790086
Message ID:
00790086
Views:
41
Dear Colleagues,

In a VB.NET program, I'm trying to check whether the user has permissions to write to a certain directory on a Novel server, like this:

DataDir = "Z:\apps\help"
Try
DirInfo = New System.IO.DirectoryInfo(DataDir)
If (DirInfo.Attributes And Sytestem.IO.FileAttributes.ReadOnly) > 0 Then
problems += "Directory has read-only access." + Chr(13) + Chr(10)
End If
Catch e As System.IO.DirectoryNotFoundException
problems += "Data Directory " + DataDir + " not found." + Chr(13) + Chr(10)
End Try

I know for certain that I have read-only access "Z:\apps\help". The only attributes that get set in the DirectoryInfo object is the Directory attribte, but not the read-only attribute.

Does anyone know if this is the correct way to go about this?

Thanks
Reply
Map
View

Click here to load this message in the networking platform