See
How to change file attributes programmatically FAQ #15763
>Is it possible to change a file from ReadOnly to ReadWrite in VFP?
>ADIR() has a flag ("R") that permits you to retrieve the names of files that are read only. I would like to change these to ReadWrite.
> I understand that if the file resides on a CD, its Read/Write attribute cannot be changed.
> When I copy files from a CD to a hard drive, the files are copied to the hard drive with ReadOnly status. I would like to change these to ReadWrite if possible.
> TIA
--sb--