If you follow our advice and switch to 4.21 this should do the trick.

code:
?"Kix version: " + @kix
$rc = GetFileAttr ("c:\test.txt")
?"Error: " + @error + " / " +@SERROR
?"Current attribute settings: " + $rc
Select
Case $rc <> 32
SetFileAttr ("c:\test.txt", 32)
?"Error: " + @error + " / " +@SERROR
Del ("c:\test.txt")
?"Error: " + @error + " / " +@SERROR
Case $rc = 32
Del ("c:\test.txt")
?"Error: " + @error + " / " +@SERROR
EndSelect
Sleep 5

The error checking, kix version and the sleep 5 are there just to see if it completes like it should. All the attribute values are documented in the manual. 32 is archive only, 33 is archive and read only, etc…
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.