>I what to change the file attribute to read only. >How do we do this again?
Use the Windows Script Host's Scripting.FileSystemObject.
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
* lcfile is the fully qualified file name of the file that* has the attributes modified
oFile = oFSO.GetFile(lcfile)
oFile.Attributes = BITOR(oFile.Attributes, 1) && 1 = Read-Only