Opened 6 months ago

Closed 6 months ago

Last modified 5 months ago

#3979 closed Feature Request (Fixed)

APIShellExConstants.au3 : missing entry concerning FOLDERID_Desktop

Reported by: cyberyeye@… Owned by:
Milestone: Component: Standard UDFs
Version: Severity: None
Keywords: APIShellExConstants.au3, FOLDERID_Desktop Cc:

Description (last modified by mLipok)

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 !)


GUID 	{FDD39AD0-238F-46AF-ADB4-6C85480369C7}
Display Name 	Documents
Folder Type 	PERUSER
Default Path 	%USERPROFILE%\Documents
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 ?

Attachments (1)

APIShellExConstants_Add_FOLDERID_Documents.png (62.9 KB) - added by cyberyeye@… 6 months ago.
APIShellExConstants.au3 req feature : add_new var :FOLDERID_Documents

Download all attachments as: .zip

Change History (4)

Changed 6 months ago by cyberyeye@…

APIShellExConstants.au3 req feature : add_new var :FOLDERID_Documents

comment:1 Changed 6 months ago by TicketCleanup

  • Version deleted

Automatic ticket cleanup.

comment:2 Changed 6 months ago by Jpm

  • Resolution set to Fixed
  • Status changed from new to closed

in fact I did it before your ticket

comment:3 Changed 5 months ago by mLipok

  • Description modified (diff)

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.