How do I find the current users desktop directory?

Blitz3D Forums/Blitz3D Programming/How do I find the current users desktop directory?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Read the key "Desktop" under the following registry path.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
You will find alot of other user-specific paths here as well.

This should work with NT, 2000, XP and 2003.
Not sure about Win 95 & Win 98 though.