>>>Anyone knows if it is possible to set a file's Read-Only attribute in VFP6 SP3?
>
>>In addition to what Cetin told you, the Windows Script Host File System object can do this with both files and folders
>
>Thanks George and Randy. I'd rather directly use the API since it really isn't complicated at all. I assume that directly calling the API will be faster than creating a COM object, right?
>
>However, you got me interested into the WSH. Does it come with Win95, 98, NT, 2000, other software? I got an NT4WS SP4 here and the CREATEOBJECT call worked, but how much can I assume on this? Also, anywhere I can find a reference (properties, methods, etc)? I looked on MS' web site not long ago for this but all I found was text saying that WSH is so great but I could not find anything useful! :(
>
It comes with Win98, Win2K, and any version of IE4 or later. It can be added on a royalty-free basis to Win9x and WinNT 4 as well. See my FAQ entry. Download it. Use it. It's lots easier than the API.