Windows Home Directory
Posted: Tue Jun 03, 2003 8:13 am
What's a decent algorithm for discovering the Windows home directory? I'm trying to figure some stuff out for NAGI but I want to be able to find the Windows equivalent of the unix directories
.../game <-- this will be passed to NAGI, easy
~/ <-- documents and settings? what if it's changed.. what about windows 95?
/etc <-- documents and settings? this is for more global settings though.
.../nagi <-- nagi will know this. these would store default settings.
Any suggestions? I need a decent system that will work for Win 95, 98, ME, NT, 2k, XP.. etc etc Would I be correct in assuming for later versions of windows I can use the enviroment settings but earlier versions I need to fudge something togeher?
- Nick
.../game <-- this will be passed to NAGI, easy
~/ <-- documents and settings? what if it's changed.. what about windows 95?
/etc <-- documents and settings? this is for more global settings though.
.../nagi <-- nagi will know this. these would store default settings.
Any suggestions? I need a decent system that will work for Win 95, 98, ME, NT, 2k, XP.. etc etc Would I be correct in assuming for later versions of windows I can use the enviroment settings but earlier versions I need to fudge something togeher?
- Nick