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:
00586487
Views:
21
This message has been marked as the solution to the initial question of the thread.
>I what to change the file attribute to read only.
>How do we do this again?

You can use WSH
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
oFile = oFSO.GetFile(lcfile) && lcfile is the name of the file
* Turn on the read-only bit
oFile.Attributes = BITOR(oFile.Attributes, 0x01)
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform