Discussion:
Exetuting "DOS" command from Oberon System 3 for Windows
(too old to reply)
sjur vestli
2008-08-26 06:25:55 UTC
Permalink
Dear Group,

Is it possible, and if yes how, to execute a "DOS" command from within
Oberon System 3 for Windows? I do not need anything (e.g. text output of
the "DOS" command) back into Oberon System 3.

Kind regards

Sjur J. Vestli
r***@gmail.com
2008-09-01 09:15:19 UTC
Permalink
Hi,

You could create a DLL that has the function that calls the given DOS
command (in C you might do
that with the system (cmdStr) function). Then in Oberon, you can use
GetAdr (V4 has that, I am sure
that System3 has this too).

You could make the above generic, by having the function take a
command string and execute that
with the system command...

In the DLL you can export this function:

int executeDOSCommand (char *cmdStr)
{
return system (cmdStr);
}

In the Oberon side, there are examples (maybe in the Kernel.Mod) that
uses GetAdr to get the
address of the function above, and call that within Oberon.

Hope this helps.

rd
Post by sjur vestli
Dear Group,
Is it possible, and if yes how, to execute a "DOS" command from within
Oberon System 3 for Windows? I do not need anything (e.g. text output of
the "DOS" command) back into Oberon System 3.
Kind regards
Sjur J. Vestli
Loading...