How to get current windows directory e.g. C:\ in C#

后端 未结 4 1196
清歌不尽
清歌不尽 2020-12-31 00:31

As the title suggests, how can you get the current OS drive, so you could add it in a string e.g.:

MessageBox.Show(C:\\ + \"My Documents\");
4条回答
提交回复
热议问题