Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading and changing file attributes
Message
De
31/01/2006 13:47:35
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Reading and changing file attributes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Novell 4.x
Database:
Visual FoxPro
Divers
Thread ID:
01091987
Message ID:
01091987
Vues:
55
Is there a Fox command, or perhaps a Windows API methodology of determining and changing file attributes? The attribute in question is read only. When I try to delete these read only files with
DELETE FILE
they do not get deleted (and I have SET SAFETY OFF for other reasons) so then I get an error when my clean up routine later tries to delete the folder containing these files (which it believes SHOULD be empty by this point.

I'm prepared to just use 'RUN' commands like:
! del c:\myReadOnlyFile.txt /F
which will force deletion of read only files, or make use of the attrib command similarly. I was hoping for something slightly on this side of 'smashing it with a club' though.
Paul A. Busbey
Victoria Insurance
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform