Code: Select all
Loop Files, A_Temp "\*.*", "F"
{
;Try FileSetAttrib "-R", A_LoopFileFullPath ; This works fine.
Try FileSetAttrib "-R" ; Critical Error: Invalid memory read/write.
Catch As Err
MsgBox Type(Err) ": " Err.Message "`n`n" A_LoopFileName,, "Iconx"
}