Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading and changing file attributes
Message
 
À
31/01/2006 13:47:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
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:
01091990
Vues:
20
This message has been marked as the solution to the initial question of the thread.
Hi Paul,
Check How to change file attributes programmatically FAQ #15763


>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.
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform