PDA

Click to See Complete Forum and Search --> : Permission...?


DanG77
May 25th, 2001, 08:20 AM
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

DanG77
May 25th, 2001, 08:52 AM
ok... i only need to return a True or False whether i can write into a directory.....

jim mcnamara
May 25th, 2001, 10:17 AM
An api this ain't but will tell you if you can write to a directory.


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