>Hi!
>
>Anyone knows if it is possible to set a file's Read-Only attribute in VFP6 SP3?
>
You can call the API as shown in the FAQ, or using Scripting.FileSystemObject to grab a file object and set the attribute:
oFSO=CREATEOBJ('Scripting.FileSystem')
oFile = oFSO.GetFile('C:\MyFile\That I want to set\as.read.only')
#DEFINE READONLY 1
oFile.Attributes = BITOR(oFile.Attributes,READONLY)