How to get full path for "Program Files" folder?

  • Thread starter Thread starter pedestrian via DotNetMonster.com
  • Start date Start date
P

pedestrian via DotNetMonster.com

I'm using VB 2005. How to get the full path for "Program Files" folder in
Windows,
ie. either it is C:\Program Files or D:\Program Files or etc.?

How about the full path of "Windows" folder? (either C:\Windows or C:\WINNT
etc.)

Thanks for replying...
 
pedestrian said:
I'm using VB 2005. How to get the full path for "Program Files" folder in
Windows,
ie. either it is C:\Program Files or D:\Program Files or etc.?

Console.WriteLine( _

System.Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles))
 
Back
Top