TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Donald Heering
from: Henk den Adel
date: 1995-08-15 21:50:00
subject: Problem with the system() call

Hi Donald,

you asked:

 DH> But when executing a DOS command that is longer than 85 characters, OS/2
 DH> gives a SYS016, which means the paramaters passed to the DosExecPgm() are
 DH> wrong.

Hmm, here it's sys1059: The system cannot execute the specified program. I
think it's originated by the path's which will be preceeded by the
loadmodules, since:

  system ("command.com /c prog.exe args ..... ");
                                             ^ 86 chars long

will not work, whereas

  system("command.com /c prog.exe args ...... ");
                                             ^ 85 chars long
does work and notably:

        system("c:\\os2\\mdos\command.com /c prog.exe args ..... ");
                                                                ^ the same
using the same args and length as above, still works, although the
"argument" to system() is definitely longer than in the first
example.

 DH> Is this a known limitation? If yes, how can I work my way round
 DH> it?

DosExecPgm does not work either.

  DH> I'm using Borland C++ for OS/2 version 1.00.

Independent of PC, here Borland 1.0 as well. IBM Cset 2.01 produces exactly
the same result.


73 es cuagn,
Henk

--- The-Box Point 0.15+ PC
* Origin: Point #26 van het Wintime BBS (2:286/401.26)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 286/4 700 280/801 24/24 396/1 270/101 105/103 42 712/515 711/808 809
@PATH: 711/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™.