Mark,
Also check out getenv( "appdata" ), getenv( "homepath" )
>is there an easy way to find out if a user is using 2k or xp? i am writing a program that relies on them have c:\my docs.. that is only set up in these os by default. is there a sys() or similar function that i can use?