Restored from previous forum. Originally posted by PB.
Anyone know how to?
PB - Registered PureBasic Coder
Getting "My Documents" folder location?
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
> There is a code snippet on the PB Resources Site called SpecialFolders
Many thanks Paul, but it doesn't show the location of "My Documents". The
constant for that is #CSIDL_PERSONAL, but that isn't listed in the snippet.
Update: I just found out that the value for #CSIDL_PERSONAL is 5.
As a side-note, now that I can read Registry keys, I've discovered there's a
whole bunch of special folder locations stored here:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ShellFolders
PB - Registered PureBasic Coder
Edited by - PB on 22 March 2002 15:48:16
> There is a code snippet on the PB Resources Site called SpecialFolders
Many thanks Paul, but it doesn't show the location of "My Documents". The
constant for that is #CSIDL_PERSONAL, but that isn't listed in the snippet.
Update: I just found out that the value for #CSIDL_PERSONAL is 5.
As a side-note, now that I can read Registry keys, I've discovered there's a
whole bunch of special folder locations stored here:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ShellFolders
PB - Registered PureBasic Coder
Edited by - PB on 22 March 2002 15:48:16
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
> What can I say... I only listed the ones that I occasionally use.
Unfortunately it lacked the very one that I needed.
> Anyways, I mentioned it as to point you in the right direction.
> (much quicker than having to slug through the Win API)
I appreciate it -- I ended up getting what I wanted from it, so thanks!
It did indeed help me in my quest -- LOL!
PB - Registered PureBasic Coder
Edited by - PB on 22 March 2002 16:30:10
> What can I say... I only listed the ones that I occasionally use.
Unfortunately it lacked the very one that I needed.
> Anyways, I mentioned it as to point you in the right direction.
> (much quicker than having to slug through the Win API)
I appreciate it -- I ended up getting what I wanted from it, so thanks!
It did indeed help me in my quest -- LOL!
PB - Registered PureBasic Coder
Edited by - PB on 22 March 2002 16:30:10