|
-
Apr 16th, 2000, 01:21 PM
#1
Thread Starter
Lively Member
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
-
Apr 16th, 2000, 02:01 PM
#2
Lively Member
add a ref. to scripting runtime. You can change file attributes, delete files, etc.
-
Apr 16th, 2000, 02:02 PM
#3
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|