Can someone please point me in the right direction...
I need to find out file / directory permissions for the user logged on... Is this an API call?
Cheers
Dan
Printable View
Can someone please point me in the right direction...
I need to find out file / directory permissions for the user logged on... Is this an API call?
Cheers
Dan
ok... i only need to return a True or False whether i can write into a directory.....
An api this ain't but will tell you if you can write to a directory.
Code:Function IsWritable(strPath as String) as Boolean
Dim i
IsWritable = True
i = Freefile
On Error goto bottom
Open strpath & "tmp.tmp" for output as i
Close i
Kill strpath & "tmp.tmp"
Exit Sub
Bottom:
IsWritable = False
End Function