Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File Attributes, Modifying with VFP
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00703931
Message ID:
00704175
Views:
21
I dunno, but you can try.

>PMFJI,
>
>Do you know if this will work from a windows PC to a file residing on a Linux server?
>
>Thanks in advance,
>
>Kevin
>
>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)
>* Turn off the read-only bit
>oFile.Attributes = BITAND(oFile.Attributes, 0xFE)
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform