Code : Tout sélectionner
#include <GUIConstants.au3>
#include <Process.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 580, 220, 193, 125)
GUISetBkColor(0x808080)
$Button1 = GUICtrlCreateButton("hide the file", 160, 128, 235, 57, 0)
GUICtrlSetFont(-1, 26, 800, 0, "Comic Sans MS")
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlSetCursor (-1, 0)
GUICtrlSetTip(-1, "hide")
$Label1 = GUICtrlCreateLabel("enter the name of the file", 360, 16, 184, 23)
GUICtrlSetFont(-1, 10, 800, 0, "Comic Sans MS")
$Input1 = GUICtrlCreateInput("", 360, 48, 177, 21)
$Label2 = GUICtrlCreateLabel("enter the <massare> of the file", 8, 16, 210, 23)
GUICtrlSetFont(-1, 10, 800, 0, "Comic Sans MS")
$Input2 = GUICtrlCreateInput("", 8, 48, 177, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Button1
a()
EndSwitch
WEnd
func a()
$a = GUICtrlRead ($Input1)
$b = GUICtrlRead ($Input2)
_RunDOS ($a)
sleep (1000)
_RunDOS ("attrib " & "+h "& $b )
EndFunc