Getting System Folders Easily via API


So you wrote an application? Great! Commercial? Freeware? Shareware? Awesome! Tested it? Great!

You send your baby on the web to millions of download users and get a ton of mail from users of specific Operating Systems or people that have used Tweaking programs that you get errors.

This is one of the most common errors that may happen to many of you who code in a way which you use static paths.

This can be easily avoided by plugging in a few functions which will do you the job of getting those paths no matter what Win32(and soon Win64) OS is running.

This article explorers the three most common paths which are used by developers:

  1. Windows Directory [Nope its not just c:\windows]
  2. System Directory
  3. Temporary Files Directory

You might also like...


About the author

Thushan Fernando

Thushan Fernando Australia

Senior Developer working at Readify on cool new technology and platforms.

Interested in writing for us? Find out more.


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The trouble with programmers is that you can never tell what a programmer is doing until it's too late.” - Seymour Cray