Página 1 de 1

DelphiExecute (Shellexecute sin apis) [Delphi]

Publicado: 07 Sep 2010, 04:44
por K-0Z
Bueno aqui de nuevo con un codigo para ejecutar archivos sin apis, es como la api "shellexecute" pero sin usarla , aqui se los dejo

Código: Seleccionar todo

************************************************************************
Autor:K-0Z
Lenguaje:Delphi
Modo De Uso:DelphiExecute(SFilePath,True or false)
Agradecimientos:BlackzeroX
Pagina web: www.indetectables.net
************************************************************************

uses ComObj;
function DelphiExecute(sFilePath:string;Hidden:bool):bool;
var
Vari:olevariant;
begin
vari:= CreateoleObject('Shell.Application');
vari.shellexecute(sFilePath, '', '', 'open', abs(strtoint(booltostr(not Hidden))));
DelphiExecute:= true;
end;
Ejemplo de uso:
DelphiExecute('c:\pruebame.exe',false);

Salu2

Re: DelphiExecute (Shellexecute sin apis) [Delphi]

Publicado: 12 Sep 2010, 22:50
por R-007
muy bueno también este snippet para el ShellExecute.. viene perfecto.. porque a veces detecta que haces ShellExecute al final por las APIs

gracias K-0Z!! =)

Re: DelphiExecute (Shellexecute sin apis) [Delphi]

Publicado: 19 Sep 2010, 00:24
por osnaraus
Gracias BlackZeroX por el code
Gracias K-0Z por pasarlo a Delphi

Re: DelphiExecute (Shellexecute sin apis) [Delphi]

Publicado: 08 Dic 2010, 21:53
por Spectrus
Gracias amigo, si puedes sube alguna api para que gente como yo vayamos aprendiendo