Expert Software Company : News

joi, 13 mai 2010

Utilizare Command Prompt (cmd.exe) fara sa fie afisata fereastra pe Ecran

DECLARE INTEGER ShellExecute IN "shell32.dll";
INTEGER hwnd,;
STRING @ lpOperation,;
STRING @ lpFile,;
STRING @ lpParameters,;
STRING @ lpDirectory,;
INTEGER nShowCmd

ShellExecute( 0, "open", "c:\windows\system32\cmd.exe", "/c ping google.com > log.txt", "", 0 )

Niciun comentariu:

Trimiteți un comentariu