Hej Steve!
Tirsdag 03. September 1996 kl.11:48 skrev Steve Batson til Peter Hendriks:
SB> You use Windows API Calls such as WinExec() in Delphi 1.x and
SB> CreateProcess() in Delphi 2.0. Hope this helps.
You can also use ShellExecute. It is very easy to use. :)
ShellExecute(0,Nil,'Path and Filename','Parameters',Nil,Sw_Show);
If you use Strings instead of PChar's then just do this:
Function Run : Boolean;
Var
PathAndFile, Parameters : String;
B : Byte;
Begin
B:=ShellExecute(0,Nil,PChar(PathAndFile),PChar(Parameters),Nil,Sw_Show);
If B<32 then
Result:=False;
End;
Mvh. Ole
Team S.A.R.R.
--- GoldED/386 2.50+
---------------
* Origin: Nightcall Point (2:237/10.150)
|