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.

You can use getenv to find it.


That will only work when the user have an english installation of windows.

On my installation the desktop folder is called "Skrivbord", which is Swedish.

Using that method, you would need to have a list of "Desktop" translated to all different languages that Windows has been translated to.