TIP: Click on subject to list as thread! ANSI
echo: delphi
to: STEVE BATSON
from: OLE ALMIND MORTENSEN
date: 1996-09-06 08:21:00
subject: DOS FROM DDELPHI

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.