I use
net share
to share a folder from commandline,
but I don't know How to set share permissions for shared folder(not security) programmatically?