Get locale specific directory in My documents

前端 未结 2 1384
执念已碎
执念已碎 2020-12-10 10:54

I have my custom application that generates a directory in My documents path, after installation the application uses that directory, but i got an issue in Chinese windows O

2条回答
  •  无人及你
    2020-12-10 11:05

    Use the special folders in System.Environment

    var path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); var subFolderPath = Path.Combine(path, "sub folder");

提交回复
热议问题