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

  • Thread starter pedestrian via DotNetMonster.com
  • 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...
 
T

Tom Shelton

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))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top