How do I set the “Comment” attribute of a file or folder using VB script ?
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
Good people, How do I set the “Comment” attribute of a file or folder using VB script ? For example, the following code lists “Comment” attributes for files under C:\ directory: set shell = CreateObject("Shell.Application") set folder = shell.namespace("C:\") for each folderitem in folder.items list = list & _ folder.GetDetailsOf(folderitem , 0) & ", " & _ folder.GetDetailsOf(0, 5) & ": " & _ folder.GetDetailsOf(folderitem, 5) & vbCr next MsgBox list Thanks, Serge