[Haskell-cafe] Abstracting configuration directories

Henk-Jan van Tuyl hjgtuyl at chello.nl
Fri Dec 20 13:13:43 UTC 2013


On Fri, 20 Dec 2013 12:29:03 +0100, Henk-Jan van Tuyl <hjgtuyl at chello.nl>  
wrote:

> You could use the environment variable AllUsersProfile[0] for this.

Another way to do this:

Prelude> :m System.Win32
Prelude System.Win32> sHGetFolderPath nullPtr 35 nullPtr 0
"C:\\Documents and Settings\\All Users\\Application Data"

Regards,
Henk-Jan van Tuyl


-- 
Folding at home
What if you could share your unused computer power to help find a cure? In  
just 5 minutes you can join the world's biggest networked computer and get  
us closer sooner. Watch the video.
http://folding.stanford.edu/


http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--


More information about the Haskell-Cafe mailing list