Start Menu and Desktop Location

BlitzPlus Forums/BlitzPlus Programming/Start Menu and Desktop Location

Arem(Posted 2005) [#1]
Anybody know how to get the location of a user's start menu folder and desktop folder? Once again I'm looking for them for the installer creator im writing. Thanks!


Lattyware(Posted 2005) [#2]
Look up the getenv command, if you need more, type set into command prompt and find the right one.


Arem(Posted 2005) [#3]
I typed set in command prompt but still am not having luck. Ideas?


Rottbott(Posted 2005) [#4]
You can also view them by going to System->Advanced->Environment Variables (in XP at least).


Lattyware(Posted 2005) [#5]
Try getting the one for user and then adding \desktop or \startmenu


xlsior(Posted 2005) [#6]
Try getting the one for user and then adding \desktop or \startmenu


This probably won't work on any non-English version of windows (which would be +/- half the windows installations out there?)


Grey Alien(Posted 2005) [#7]
You have to read the registry (in code, don't know how in BB soz). Look for the following path
Software\MicroSoft\Windows\CurrentVersion\Explorer\Shell Folders 

and then read the Desktop or Start Menu keys for the full path. Then you can create shortcuts in them (with more code).