How to get the StartMenu folder for all users?
How to get the StartMenu folder for all users?
How to get the StartMenu folder for all users?
How to get the StartMenu folder for all users?
How to get the StartMenu folder for all users?
How to get the StartMenu folder for all users? How to get the StartMenu folder for all users? How to get the StartMenu folder for all users? How to get the StartMenu folder for all users? How to get the StartMenu folder for all users? How to get the StartMenu folder for all users? How to get the StartMenu folder for all users? How to get the StartMenu folder for all users?
How to get the StartMenu folder for all users? How to get the StartMenu folder for all users?
How to get the StartMenu folder for all users?
Go Back  Xtreme Visual Basic Talk > > > How to get the StartMenu folder for all users?


Reply
 
Thread Tools Display Modes
  #1  
Old 01-20-2004, 09:17 AM
Bobo Rasta Bobo Rasta is offline
Newcomer
 
Join Date: Jan 2004
Posts: 2
Default How to get the StartMenu folder for all users?


With Environment.SpecialFolder.StartMenu i only get the startmenu folder of the current user but how i can get the startmenu folder for all users??? Any idea?
Reply With Quote
  #2  
Old 01-21-2004, 04:26 AM
Bobo Rasta Bobo Rasta is offline
Newcomer
 
Join Date: Jan 2004
Posts: 2
Default

Ok, if ound a 99%-solution.

Dim menudir As String = Environment.GetEnvironmentVariable("ALLUSERSPROFILE") + Mid(Environment.GetFolderPath(Environment.SpecialFolder.StartMenu), Environment.GetFolderPath(Environment.SpecialFolder.StartMenu).LastInd exOf("\") + 1)

This should work on most systems, only if the current user changed the location and name of his startmenu folder it wouldn't be possible to "calculate" the location and name of the startmenu folder of "all users" this way.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you put a SHORTCUT on DESKTOP when installing? Pooyae Installation / Documentation 4 12-05-2003 11:08 AM
List users on windows machine englen General 5 10-31-2003 12:54 AM
Showing browse for folder in OUTLOOK webx2000 Word, PowerPoint, Outlook, and Other Office Products 0 04-06-2003 04:32 AM
Determining user's win os and os folder name? REDBULL247 General 4 10-23-2001 04:21 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
How to get the StartMenu folder for all users?
How to get the StartMenu folder for all users?
How to get the StartMenu folder for all users? How to get the StartMenu folder for all users?
How to get the StartMenu folder for all users?
How to get the StartMenu folder for all users?
How to get the StartMenu folder for all users? How to get the StartMenu folder for all users? How to get the StartMenu folder for all users? How to get the StartMenu folder for all users? How to get the StartMenu folder for all users? How to get the StartMenu folder for all users? How to get the StartMenu folder for all users?
How to get the StartMenu folder for all users?
How to get the StartMenu folder for all users?
 
How to get the StartMenu folder for all users?
How to get the StartMenu folder for all users?
 
-->