In VB.NET 2005, when you want the program files folder (which is usually c:\program files) you can use this code:

Private mstrProgramFilesPath As String= System.Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)

Of course, there are other folders available just check out Environment.SpecialFolder



Be Sociable, Share!