Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File Existence Question
Message
De
15/02/2001 17:31:06
 
 
À
15/02/2001 16:05:19
David Brunelle
Université de Sherbrooke
Sherbrooke, Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00476468
Message ID:
00476507
Vues:
17
See the following topic in help:
"Table File Structure (.dbc, .dbf, .frx, .lbx, .mnx, .pjx, .scx, .vcx)"
it describes the header of a dbf file even if that extension is not used. You can parse it to determine if it is a dbf and how many records are in it.


>Ok, here is the situation. I have a security measure on my program that require the existence of a file to happen. A few time ago, somebody smart enough could just remove the file and the security would fail and allow him to go on. Now, I put codes so that if the file does not exist , there is no way he can enter the program. But The problem is that if somebody's smart enough, he will create a file with the same name but junk in it. FoxPro will issue several error messages that the file is not a table, but by just clicking ignore, he will eventually be able to get it. Is there any way to check if the specific file is of a certain type. I can't really check the immediate content of the file since it`s not always the same for everybody and the content is encrypted (I do not have the key the decrypt it). For example, if there was a way to know the exact size of the size, or if there is a record in it( there is always only one record in it).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform