Aiua PSN : Aiua / GT : Aiua42 | c'est bon, j'ai trouvé
j'utilise :
Code :
- function TDLG_inventaire.WinExecAndWait32(FileName:String):integer;
- var
- zAppName:array[0..512] of char;
- zCurDir:array[0..255] of char;
- WorkDir:String;
- StartupInfo:TStartupInfo;
- ProcessInfo:TProcessInformation;
- code : cardinal;
- begin
- StrPCopy(zAppName,FileName);
- GetDir(0,WorkDir);
- StrPCopy(zCurDir,WorkDir);
- FillChar(StartupInfo,Sizeof(StartupInfo),#0);
- StartupInfo.cb := Sizeof(StartupInfo);
- StartupInfo.dwFlags := STARTF_USESHOWWINdow;
- StartupInfo.wShowWindow := 0 ;
- if not CreateProcess( nil , zAppName, nil , nil , false,
- CREATE_NEW_CONSOLE or NORMAL_PRIORITY_CLASS, nil , nil ,StartupInfo,ProcessInfo) then Result := -1
- else begin
- WaitforSingleObject(ProcessInfo.hProcess,INFINITE);
- GetExitCodeProcess(ProcessInfo.hProcess,code);
- Result := Integer(code);
- end ;
- end ;
|
et je lui passe en parametre '232_read import.txt,1,1,1,1,1,1,0'
et ça marche ---------------
"The pen is mightier than the sword if the sword is very short, and the pen is very sharp." TP. Mes Jeux. Mes Ventes. Groupe HFR sur PlayFire.
|