Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How do I set the “Comment” attribute of a file or folder using VB script ?

How do I set the “Comment” attribute of a file or folder using VB script ?

Scheduled Pinned Locked Moved Visual Basic
questionlinuxtoolstutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Serge Krynine
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups