oFSO = CREATEOBJECT("Scripting.FileSystemObject") oFile = oFSO.GetFile(lcfile) && lcfile is the name of the file IF BITAND(oFile.Attributes, 0x01) = 1 && Is file read only oFile.Attributes = BITAND(oFile.Attributes, 0xFE) && Turn off read only attriburte ENDIFRemember that WSH is included in Windows starting with Windows 2000. There's no guaranty that it would be present on PC with any previuos version of Windows.