How do you get the Default Users folder (e.g. c:\users\Default)

后端 未结 3 1982
鱼传尺愫
鱼传尺愫 2021-01-12 10:11

I\'ve looked at the Environment.GetFolderPath method and the System.Environment.SpecialFolder enum but I couldn\'t see anything that returns the path of the Default Users fo

3条回答
  •  盖世英雄少女心
    2021-01-12 11:03

    You can't because the access to that folder is denied, this folder is used only by the Microsoft. I sure Environment or any other class will not provide you such functionality. This can only be done with some sort of hacking maybe?

提交回复
热议问题