Opened on Oct 26, 2023 at 6:14:15 AM
Closed on Oct 26, 2023 at 8:48:47 AM
Last modified on Nov 8, 2023 at 12:09:27 AM
#3979 closed Feature Request (Fixed)
APIShellExConstants.au3 : missing entry concerning FOLDERID_Desktop — at Version 3
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | Component: | Standard UDFs | |
| Version: | Severity: | None | |
| Keywords: | APIShellExConstants.au3, FOLDERID_Desktop | Cc: |
Description (last modified by )
For a project I had to use FOLDERID_Documents I was suprised that this variable was missing from : APIShellExConstants.au3
So I have edited : APIShellExConstants.au3 to add below line 623 :
Global Const $FOLDERID_Documents = '{FDD39AD0-238F-46AF-ADB4-6C85480369C7}'
and of course it's works as expected (perfectly without any other modification !)
https://learn.microsoft.com/en-us/windows/win32/shell/knownfolderid?redirectedfrom=MSDN
say:
FOLDERID_Documents
GUID {FDD39AD0-238F-46AF-ADB4-6C85480369C7}
Display Name Documents
Folder Type PERUSER
Default Path %USERPROFILE%\Documents
CSIDL Equivalents CSIDL_MYDOCUMENTS, CSIDL_PERSONAL
Legacy Display Name My Documents
Legacy Default Path %USERPROFILE%\My Documents
This quick "fix" allow to do, example:
Local $Dst = "C:\Temp\Documents" _WinAPI_ShellSetKnownFolderPath($FOLDERID_Documents, $Set_Dst, 0, 0)
Is this quick "fix" could being added to the next AutoIT version ?
Regards
Change History (4)
by , on Oct 26, 2023 at 6:16:49 AM
| Attachment: | APIShellExConstants_Add_FOLDERID_Documents.png added |
|---|
comment:2 by , on Oct 26, 2023 at 8:48:47 AM
| Resolution: | → Fixed |
|---|---|
| Status: | new → closed |
Thanks
in fact I did it before your ticket
Cheers
comment:3 by , on Nov 8, 2023 at 12:09:27 AM
| Description: | modified (diff) |
|---|

APIShellExConstants.au3 req feature : add_new var :FOLDERID_Documents