Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to change file attribut...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00586467
Message ID:
00586496
Views:
15
This message has been marked as a message which has helped to the initial question of the thread.
>I what to change the file attribute to read only.
>How do we do this again?

Use the Windows Script Host's Scripting.FileSystemObject.
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
* lcfile is the fully qualified file name of the file that
* has the attributes modified
oFile = oFSO.GetFile(lcfile)
oFile.Attributes = BITOR(oFile.Attributes, 1) && 1 = Read-Only
George

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

Click here to load this message in the networking platform