I've seen answers using GetDetailsOf()
to get details about shell items, but the numbers are always magic numbers.
I've looked at the docs for both FolderItem and GetDetailsOf but found nothing. (The list in the latter is not for everything. They don't cover "Description", "Authors", nor the recycle bin delete date...)
Is there some method that will return the possible options for an item? Is it listed somewhere?
I figured this out by accident. If you pass
null
intoGetDetailsOf
then it responds with the column names. For example, execute the following JScript withcscript
:On my Windows 10 system this outputs:
And this is quite different from Windows 2000 as detailed from Retrieving Extended File Properties. Incidentally if you pass in a different
NameSpace
then you're going to get different attributes. In my example, I'm asking what attributes are available for files on driveD:
which could be different depending on its format.A VBA function do the job. Microsoft Scripting Runtime and Microsoft Shell Controls And Automation needed