Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » API

Post new topic   Reply to topic
File permission
View previous topic :: View next topic  
Author Message
2chin
Freshman


Joined: 26 Jan 2004
Posts: 30
Location: Russia

PostPosted: Mar 1st, 2004 05:44 AM    Post subject: File permission Reply with quote

I can not find any functions for set file/folder permissions in VBasin or Win API
Do anybody know somthing about this?
Back to top
View user's profile Send private message Send e-mail ICQ Number
P.T.A.M.
Administrator


Joined: 08 Oct 2003
Posts: 752
Location: Greece

PostPosted: Mar 1st, 2004 05:25 PM    Post subject: Reply with quote

Like this?

[vb:1:132582b2dd]SetAttr "TESTFILE", vbHidden ' Set hidden attribute.
SetAttr "TESTFILE", vbHidden + vbReadOnly ' Set hidden and read-only
' attributes.[/vb:1:132582b2dd]

Quote:
vbNormal 0 Normal (default)
vbReadOnly 1 Read-only
vbHidden 2 Hidden
vbSystem 4 System file
vbArchive 32 File has changed since last backup

_________________
No one is completely useless. They can at least be an example of what to avoid.
Back to top
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
2chin
Freshman


Joined: 26 Jan 2004
Posts: 30
Location: Russia

PostPosted: Mar 2nd, 2004 06:21 AM    Post subject: Reply with quote

No. I want set permission on folder for grant create/wrtite files and deny view file list

Thanks
Back to top
View user's profile Send private message Send e-mail ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » API All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic