Код:
![Выделить весь код](images/misc/selectcode.png)
#include <FileConstants.au3>
#include <MsgBoxConstants.au3>
If $CmdLine[0] >1 Then
Local $File = $CmdLine[1]
If FileSetAttrib($File, "+R-A", 0) Then
MsgBox ($MB_SYSTEMMODAL, "Ok", $CmdLineRaw)
Else
MsgBox($MB_SYSTEMMODAL, "Error", "Problem setting attributes.")
EndIf
EndIf
потому, что $CmdLineRaw - это строка типа "myscript.au3 param1", а не массив