urif
asked on
getting owner of a file under Windows NT/2000 and changing file attributes
hi,
i need to know the owner of a file under Windows NT/2000 and change the file attributes, meaning that if a file is own by me and i would like to (for example) set the attribute to all users can copy/view... etc
thanks
i need to know the owner of a file under Windows NT/2000 and change the file attributes, meaning that if a file is own by me and i would like to (for example) set the attribute to all users can copy/view... etc
thanks
P.S: www.madshi.net
ASKER
mmm actually i was looking for some code snippets.
i'm not allowed to intall any soft on the machine i'm working on...
thanks!
i'm not allowed to intall any soft on the machine i'm working on...
thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
it was usefull, though it was micro$soft site (to be scare of...)
thanks
thanks
with FileSecurity(fileNameOrHan
if Owner = CurrentUser then
DAcl.SetFileAccess(Account
This checks, whether the file is owned by the current user, and if it is, write access to the file is granted to the user "AnotherUser".
Regards, Madshi.