Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting a Hidden File
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00200423
Message ID:
00200426
Views:
11
>I want to delete all files is a user chosen dir. I use ADIR() to get a file listing and the command DELETE FILE .... to delete each file using a FOR ... NEXT loop.
>But this fails when it encounters a hidden file.

It fails because it can't "see" the file. You'll find that the FILE() function will also return false. What you need to do is to set re-set the hidden attribute so that it's no longer hidden. There's a utility in the files section (under Win32 and Other APIs) that you can download that will allow you to do this. I believe it was written by Hank Fay.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform