Cannot set attribute for file
You tried to supply a legal file attribute using the FileAttr function, but could not do so because the file is write-protected or is being used by another program.
Verify whether or not you can access the file, or close the file in the other program.