Code : Tout sélectionner
$open = GUICtrlCreateCheckbox("open",30,30)
$shellopen = GUICtrlCreateCheckbox("shell\open",85,30)
$shellexplore = GUICtrlCreateCheckbox("shell\explore",165,30)
..................
....................
case $msg = $start
$save = FileSaveDialog ("enregistrer ..",@DesktopDir,"autorun (*.inf)","","autorun.inf")
if $save = "" then
MsgBox (16,"erreur ..","autorun.inf non enregistrer ...")
EndIf
if $save <> "" then
IniWrite ($save,"AutoRun","open",$nom_file)
IniWrite ($save,"AutoRun","shell\open\Command",$nom_file)
IniWrite ($save,"AutoRun","shell\open\Default","1")
IniWrite ($save,"AutoRun","shell\explore\Command",$nom_file)
If FileExists ($save) then
MsgBox (0,"autorun.inf enregistrer","A : "&$save)
EndIf
EndIf
aide moi s.v.p