CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2001
    Posts
    7

    EDIT FILE PROPERTIES

    Hi !
    I need Help !
    Is that possible to edit file Properties in VBS or VB ?
    example : change date modified property of a file ...
    THX !



  2. #2
    Join Date
    Feb 2001
    Location
    PA
    Posts
    163

    Re: EDIT FILE PROPERTIES

    To just set an attribute use the SetAttr Statement

    Dim FilePath as string
    FilePath = some file path
    ' set attribute to read-only
    SetAttr FilePath, vbReadOnly




    To modify a file creation, access or modification time use the SetFileTime API


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured