-
AutoIt
(
http://forum.oszone.net/forumdisplay.php?f=103)
Аргумент $CmdLineRaw
Почему у меня не получается установить атрибуты для файлов, переданных через аргумент $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", а не массив
|
Время: 22:36.
© OSzone.net 2001-