Почему у меня не получается установить атрибуты для файлов, переданных через аргумент $CmdLineRaw?
FileSetAttrib($CmdLineRaw, "+R-A", 0)
;MsgBox (0, "title", $CmdLineRaw)
#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", а не массив
vBulletin v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.