Results 1 to 3 of 3

Thread: Permission...?

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Location
    Oxford, UK
    Posts
    13

    Question Permission...?

    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

  2. #2

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Location
    Oxford, UK
    Posts
    13
    ok... i only need to return a True or False whether i can write into a directory.....

  3. #3
    jim mcnamara
    Guest
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width