Click to See Complete Forum and Search --> : get/set file/folder ownership on windows NT


Sven Olof Olsen
February 17th, 1999, 12:07 PM
Hello


Can anybody give me tip how to read and write the file/folder ownetship on a windows NT network. I need a vb program that can set the ownership to an account

that I specify.


ex. setowner.exe reads setowner.ini that contains something like the following;

[Dirs]

Path001=\\server\share\a\user1

Account1=domain\useraccount1

Path002=\\server\share\a\user2

Account2=domain\useraccount2


I have managed to verify the account in the winNT account database using functions in netapi32.dll, but now I'm stuck. I can't find out what dll, api or anything to use. I know for sure that it can be done.


Thanks


Sven