See
How to change file attributes programmatically FAQ #15763
>I found this API to set a file attribute
>
>
>
DECLARE SHORT SetFileAttributes IN kernel32;
> STRING lpFileName,;
> INTEGER dwFileAttributes
>
>
>I assume I set lpFilename to xyz.doc
>but what do I set dwFileAttributes to make xyz.doc read only?
>
>Thanks
>Peter
--sb--