System.Environment.GetFolderPath limited to the current user

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

VB.Net allows the ability to find the path of special folders by calling the
System.Environment.GetFolderPath function with a parameter specifying which
special folder I want the path of. Unfortunately, it doesn't appear to allow
finding special folders related to "All Users".

For example, I am trying to determine the "All Users Start Menu" folder but
am only able to find the "Start Menu" folder for the current user.

How is it possible to get special folder paths for folders not listed in
..Net's Special Folder enumeration?

Thanks in advance for any help you can offer!
 
Hi,

Me.Text = Environment.GetEnvironmentVariable("ALLUSERSPROFILE") & "\Start
Menu"



Ken

----------------------

VB.Net allows the ability to find the path of special folders by calling the
System.Environment.GetFolderPath function with a parameter specifying which
special folder I want the path of. Unfortunately, it doesn't appear to
allow
finding special folders related to "All Users".

For example, I am trying to determine the "All Users Start Menu" folder but
am only able to find the "Start Menu" folder for the current user.

How is it possible to get special folder paths for folders not listed in
..Net's Special Folder enumeration?

Thanks in advance for any help you can offer!
 
Ken Tucker said:
Me.Text = Environment.GetEnvironmentVariable("ALLUSERSPROFILE") & "\Start
Menu"

Notice that "Start Menu" is localized. On my German language machine the
folder's name is "Startmenü".
 

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

Back
Top