Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading and changing file attributes
Message
 
To
31/01/2006 13:47:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Novell 4.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01091987
Message ID:
01091990
Views:
21
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform