>>any way within foxpro to remove the read only attribute from a file? I see i can do a lowlevel function to open a file read only.. but does that set the attribute after you close it as well?
>>
>>
>>Thanks,
>>Jason
>
>Hi Jason,
>
>Don't think closing the file low level will change the attributes. But I'm sure there is an API or Windows Scripting Host call that can be made for this. I haven't had to do this so I don't know what it would be. You might poke around API and WSH to see and probably someone with more info on this will chime in. If no one does, I'll look at it myself and see what I can find out.
There's a sample implementation of the Win32 API SetFileAttributes() call already on UT in the FAQ as entry #241
Set and get file attributes