This way (using Scripting object) is realy new for me. It really cool! :) Thank you.
>>I what to change the file attribute to read only. >>How do we do this again? > >You can use WSH
>oFSO = CREATEOBJECT("Scripting.FileSystemObject")
>oFile = oFSO.GetFile(lcfile) && lcfile is the name of the file
>* Turn on the read-only bit
>oFile.Attributes = BITOR(oFile.Attributes, 0x01)