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