Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hide Files
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00058328
Message ID:
00058357
Vues:
31
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform