Voici le code que j'utilise mais qui ne fonctionne pas :
Code : Tout sélectionner
RunAsSet("administrateur",@ComputerName,"MP")
RunWait("c:\kidokiller\kidokiller.exe -n")
RunAsSet()Merci
Code : Tout sélectionner
RunAsSet("administrateur",@ComputerName,"MP")
RunWait("c:\kidokiller\kidokiller.exe -n")
RunAsSet()ShellExecute ( "filename" [, "parameters" [, "workingdir" [, "verb" [, showflag]]]] )
Code : Tout sélectionner
ShellExecute ("c:\kidokiller\kidokiller.exe","-n")Code : Tout sélectionner
RunAsSet("administrateur",@ComputerName,"MP")
ShellExecute("c:\kidokiller\kidokiller.exe","-n")
RunAsSet()AutoIt Help a écrit :#RequireAdmin
MsgBox(4096,"Info","Now running with admin rights")

Code : Tout sélectionner
RunAs ( "username", "domain", "password", logon_flag, "filename" [, "workingdir" [, show_flag [, opt_flag ]]] )Code : Tout sélectionner
RunAs("administrateur",@computername,"MP",1,"c:\kidokiller\kidokiller.exe -n")Code : Tout sélectionner
RunAs("administrateur",@computername,"MP",1,@computername & "/c " & "c:\kidokiller.exe -n")
Code : Tout sélectionner
$file="monfichierexecutable.exe"
$par1="coucou"
$par2="salut"
$par3="yo ^^"
Run($file & '"' & $par1 & '" "' & $par2 & '" "' & $par3 & '"')Code : Tout sélectionner
If $CmdLine[0] = 0 Then Exit
Dim $par1 = $CmdLine[1]
Dim $par2 = $CmdLine[2]
Dim $par3 = $CmdLine[3]
msgbox(0,"","Le premier paramètre est : "&$par1&" le deuxième est : "&$par2&" le troisième est : "&$par3)

Code : Tout sélectionner
Func ShellExecuteAs($username, $domain, $password,$logon_flags, $filename, $Param = '', $Workdir = '', $Verb = '', $Showflag = '')
RunAs($username, $domain, $password, $logon_flags, @AutoItExe & ' /AutoIt3ExecuteLine "ShellExecute(''' & $filename & ''',''' & $Param & ''',''' & $Workdir & ''',''' & $Verb & ''',' & $Showflag &')"')
EndFunc ;==>ShellExecuteAs