Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Foxpro Equivilant of ATTRIB command?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00688042
Message ID:
00688057
Views:
30
>Is there anyway to change the attributes of a file in VFP6? Either a built in command/control, or a third party VCX would work fine...
>
>Thanks

How about the Windows Script Host.
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
* lcfile is the file to have the attributes modified
oFile = oFSO.GetFile(lcfile)
* Flip the read-only attribute
oFile.Attributes = BITXOR(oFile.Attributes, 1)
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform