Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to change the read-only setup of a file by code ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00423846
Message ID:
00424119
Views:
19
>#DEFINE READONLY 1
>oFSO = CREATEOBJECT('Scripting.FileSystemObject')
>* lcfile is the fully qualified file name of an existing file
>oFile = oFSO.GetFile(lcfile)
>oFile.Attributes = BITXOR(oFile.Attributes, READONLY)


Hey George. I inadvertently saw your post and tried it.
Cool!!
It will come in handy. :)

Thanks.
HI-YO SILVER AWAY!!
The Lone Ranger, The late Clayton Moore R.I.P.
I am a fool!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform