View Full Version : VB: Get the quick launch folder for the current user

02-11-2005, 10:53 PM
Hey guys, iv serched everywhere and cant find how to do this. I thought i could do something like,

dim quicklaunchf as string
quicklaunchf = [users current drive letter] + "\documents and settings\" + [users user name] + "\Application Data\Microsoft\Internet Explorer\Quick Launch"

only I dont know how to get none of the values in [] lol.

Or is there an easier way?

Thanks guys

02-12-2005, 12:28 PM

02-12-2005, 02:10 PM
So how would I use this ?

02-12-2005, 02:20 PM
How should I know? :D

Just use it... if it doesn't work, then go to MSDN and look up info about shell special folders, or environment variables, or something. :)

02-14-2005, 09:27 AM
Use the Win32API.
Public Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long

Do a search on MSDN.