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:
00704148
Views:
18
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)
Kevin Emmrich
www.jkt9000.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform