So I am making a downloader/installation program and I want it to download to a folder in the roaming folder but I need to know the users name (current logged in users) to be able to move a file there how would I accomplish this?
Asked
Active
Viewed 95 times
0
-
1`Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)` The Downloads folder is not one of the enumerated ones. See http://stackoverflow.com/q/3795023/1070452 – Ňɏssa Pøngjǣrdenlarp Feb 28 '15 at 02:22
-
Your question should have been "how to determine the home folder using the .Net framework?" What you do with it does not really matter after that. – Tarik Feb 28 '15 at 02:32
1 Answers
0
The following code will get you the Desktop folder:
Environment.GetFolderPath(Environment. SpecialFolder.Desktop)
Similarly, you can get the other special folders using the other enum values of Environment. SpecialFolder

Tarik
- 10,810
- 2
- 26
- 40