Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hide Files
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00058328
Message ID:
00058357
Views:
25
>A client would like to hide all the files in a certain directory from an app that I wrote.
>
>Is selecting the hidden attribute the only way of doing this?

Claude,

You can use the SetFileAttributes API call to do this. You should be aware that just because a file's hidden, doesn't mean that an application can't use it. If an application doesn't properly use the FILE() function to test for the presence of the file prior to trying to open it, USE HIDDEN.DBF still will open the table, regardless of the attribute setting. Further, the ADIR() function can be used to determine the attribute.

hth,

George
George

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

Click here to load this message in the networking platform