TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Gary Chambers
from: Bill Parker
date: 1994-12-13 12:28:04
subject: DosExecPgm

GC> Can you give me some help with building an ArgList to pass
GC> to DosExecPgm?

JdBP> It's just a NUL terminated string.  Separate each "argument" with
JdBP> whitespace, use double quotes around arguments with embedded
JdBP> whitespace, quote embedded quotes with a backslash, and the command
JdBP> line tail parsing routines in most programs should be able to cope.

Actually, I believe it's supposed to be a double-NULL terminated string. A
single NULL separates one parameter from the next. If the parameters you
are using are constant than the string would look something like this...

"APPNAME\0FirstParam\0SecondParam\0Etc\0\0" (the last \0 is
probably overkill)

If you need to dynamically build the string then you could use sprintf with
a format of...

"APPNAME\0%s\0%s\0%s\0\0"

At least that's how it seems to me...is that the info you were looking for?

Bill

--- Maximus/2 2.01wb


* Origin: Blue Bird Of Prey * Vergennes, VT * (802) 877-6912 (1:325/207)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1
@PATH: 325/207 118 141/730 920 754 1130 1135 3615/50 229/2
@PATH: 12/2442 711/409 54/54 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

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™.