Results 1 to 3 of 3

Thread: how to change file attribute

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 1999
    Location
    Israel
    Posts
    79

    Red face

    i need to felete a file that is hidden, i get an error.
    so i need to change the attribute of the file
    to a normal file(not hidden)

    how do i do that ?
    or, how do i delete the hidden file without changing the attribute.

    i use a simple kill command

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    82
    add a ref. to scripting runtime. You can change file attributes, delete files, etc.

  3. #3
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    There's a function 'SetAttr' you can use to set file attributes, you'll see the constants if you have VB6. If not search the help for the constants... However, you can use 'GetAttr' to get file attributes.

    Code:
    'Delet file <FileName>
    SetAttr FileName, vbNormal
    Kill FileName

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