Quantcast
Channel: How can i get the path of the current user's "Application Data" folder? - Stack Overflow
Viewing all articles
Browse latest Browse all 7

Answer by M4N for How can i get the path of the current user's "Application Data" folder?

$
0
0

Have a look at the System.Environment class and its properties and methods, e.g:

string systemDir = System.Environment.SystemDirectory;string docs = System.Environment.GetFolderPath(    System.Environment.SpecialFolder.MyDocuments));string systemDrive = System.IO.Path.GetPathRoot(systemDir);

The first one returns "C:\Windows\system32" for example and the second one "C:\Documents and Settings\USERNAME\My Documents".


Viewing all articles
Browse latest Browse all 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>