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

Click here to load this message in the networking platform