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
Printable View
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
add a ref. to scripting runtime. You can change file attributes, delete files, etc.
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