WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Shell
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Enumerate Supported File Properties by Windows Shell

 Keywords: Enumerate Supported File Properties Windows Shell Shell.Application 

;Winbatch 2010C - Enumerate Supported File Properties by Windows Shell
;                 displayed in .ini Format
;
;Stan Littlefield, November 26 2010
;///////////////////////////////////////////////////////////////////////////////////////
oShell = CreateObject("Shell.Application")
Folder = "C:\Windows"
oFolder = oShell.Namespace(Folder)
Null=ObjectType("NULL","")
cProps="[FileProperties]":@CRLF
For i = 0 To 99
   Prop = oFolder.GetDetailsOf(Null, i) ;pass Null to enumerate
   If Prop==Null Then Continue          ;skip if not found or reserved
   cProps=cProps:Prop:"=":i:@CRLF
Next
oFolder=0
oShell=0
Message("",cProps)

Exit

Article ID:   W18187
Filename:   Enumerate Supported File Properties by Windows Shell.txt
File Created: 2010:11:26:09:06:42
Last Updated: 2010:11:26:09:06:42