oFSO = CreateObject("Scripting.FileSystemObject") oFile = oFSO.GetFile("d:\temp\package.txt")To set it to read only:
oFile.Attributes = oFile.Attributes + 1To clear the read only:
oFile.Attributes = oFile.Attributes - 1Where 1 is the attribute value for the file's read-only flag.