Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21990

How to get folder permissions?

$
0
0
Hi all, there is a way to check if a shared folder has write permissions?
I've tried with GetAttr() function, but using this:

Code:

Private Sub Form_Load()
    'both returns false
    MsgBox (GetAttr("\\listmf\rawer") = (vbDirectory Or vbReadOnly)) ' I haven't permissions to create any file or modify nothing
    MsgBox (GetAttr("\\listmf\emeter") = (vbDirectory Or vbReadOnly)) ' I have permissions to create any file or modify anything
End Sub

Thanks! :)

Viewing all articles
Browse latest Browse all 21990

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>