🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1950

Executing a program from

#1950
From: Robert Mahoney
Date: Wed, 07 Oct 1992 15:26
19 lines
1104 bytes
KK>In <kaz.718396549@pv7b82.vincent.iastate.edu> Jimmy Buffet writes:
>Is there an OS/2 function I can call to execute a program within a program
>(for example, call dir within a program).  Also, is there a list
>of standard OS/2 file and dir functions I can get anywhere?  Thanks!
>
>--
KK>Check on the DosExecPgm API; it allows you to start either child programs
KK>either Synchronously or Asynchronously.  For example in your case you would
KK>code the following:

KK>    DosExecPgm(NULL,0,EXEC_SYNC,"CMD.EXE\0/K DIR\0",NULL,&RC,"CMD.EXE");
 
  DosExecPgm will start programs only of the same type of the parent.
VIO->VIO, PM->PM, etc.  Use DosStartSession if you want to start
a VIO program from a PM program.

Bob
___
 * MR/2 1.1 #10 * OS/2 on a dealer's shelf is rarer than Elvis in a 7-11
Technical Details
Message-ID: <718564033.F00002@blkcat.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!blkcat!Uucp

Show Full Headers
Complete Article Headers
From: Robert.Mahoney@f347.n109.z1.fidonet.org (Robert Mahoney)
Sender: Uucp@blkcat.UUCP
Path: arc1-ca.pugleaf.net!sparky!uunet!blkcat!Uucp
Newsgroups: comp.os.os2.programmer
Subject: Executing a program from
Message-ID: <718564033.F00002@blkcat.UUCP>
Date: Wed, 07 Oct 1992 10:26:00 -0500
Lines: 20