Environment.SpecialFolder.CommonApplicationData
*returns "C:\Documents and Settings\All Users\Application Data" under XP that is writeable for all users
*returns "C:\ProgramData[MyApp]\" under Vista and this is not writeable for regular users
Now why i want CommonFolder ? Because, an admin will install my software database on XP (or vista) under Admin account, but when user logs back and run my software, the current account will tel my software to look at a different place the database was installed : the user directory in Documents and settings....
so AllUsers (common folder) is common to admin and regular non admin user..
This drives me crazy : where to put my database so it works under Vista and XP ????? thanks Jonathan