Login or Sign Up to become a member!
LessThanDot Sit Logo

LessThanDot

Desktop Developer

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot friendfeed Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.

Your profile

Search

XML Feeds

Google Ads

Tags: vista

comments
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

All my users use Windows XP for now, they have no say in the matter. But me I use Vista 64bits. So I test my application on that. And I have a few VMs to test the windows XP behaviour and try and make them work on both. And sometimes you get to deal with the increased security in ista or Windows 7. For instance you are no longer allowed to write in the Program files folder. So I had to find another place to write my application specific ini file. I know I should have moved it long ago. But now is a good a time as any.
But apparently I can write things to the CommonApplicationData Folder.

  1. return Environment.OSVersion.Version.Major <= 5 ? new System.IO.DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + "\\" + Settings.Default.Version) : new System.IO.DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "\\" + Settings.Default.Version);

Which in Windows 7 happens to be User/All Users folder which is fine by me.

About the Author

User bio imageChristiaan is a forensic technician who programs on the side, although my function description says that I do IT-things for 90% of the time . I'm an avid VB.NET fan and I use lots of the ALT.Net techniques, like unit-testing, nhibernate, logging, IoC, ...
Social SitingsTwitterLinkedInHomePageLTD RSS Feed
832 views
c#, vista, windows 7
submit to reddit Digg!FacebookDotnetkicks

Comments and Feedback