Jump to content

APIShellExConstants.au3 : missing entry concerning FOLDERID_Desktop


cyberyeye
 Share

Recommended Posts

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 :

Quote

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 :

Quote

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 modification allow to do example:

Quote

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
 

Edit: as requested I have done on trac a request feature : https://www.autoitscript.com/trac/autoit/ticket/3979

   
   
   
   

APIShellExConstants_Add_FOLDERID_Documents.png

Edited by cyberyeye
added Trac request #3979
Link to comment
Share on other sites

7 hours ago, cyberyeye said:

I didn't knew there was such bug tracker, sorry about that.

The bug tracker is not a place to have a chat so opening a post in the forum is a good idea, and placing a reference to the chat in the tracker's post gives the MVPs a place to look at the full discussion in regards to the issue. You did good. 

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...