Using C#, how do I create a folder only accessible by the current windows user that is executing the program?
That is, if I log in Windows as “MyDomain\John” and run the program to create a folder “D:\JohnOnly”. After I log out and log back in as “MyDomain\Sam”. The “D:\JohnOnly” can not be opened.
Thanks,
This is what I wrote after more research:
It worked. I will mark it as answer if no serious bug found. Thanks.