Bueno les dejo esta alternativa por API. saludos

Código: Seleccionar todo

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.8.1
 Author..........: Pink
Script Function...: Alternative shellExecute.
Uso..............: Shellrun($file)
#ce ----------------------------------------------------------------------------

local $file="C:\Users\Usuario\Desktop\A.exe"

Shellrun($file)

Func Shellrun($file)
Const $Operation="Open"
const $mode="SW_SHOWMAXIMIZED"
$shell=dllcall("shell32.dll","int","ShellExecute","hwnd",0,"str",$Operation,"str",$file,"str",0,"str",0,"str",$mode)
EndFunc
Imagen
Responder

Volver a “Fuentes”