Hi,
using Console Application:
1. I would like to execute operating system command for example:
|
Source code
|
1
|
dir /w /a-d /on
|
How to execute it from Jabaco?
2. And second little more complicated. Is it possible to execute the code in current CMD windows without opening new process?
For example I connect to IBM DB2 database using command from CMD (this is executed directly on CMD not through Jabaco program):
|
Source code
|
1
|
db2 connect to mydatabase
|
But then I would like to check if database is connected successfully. So I need to execute command:
|
Source code
|
1
|
db2 connect
|
and this code I would like to execute through Jabaco program. (And a lot of other commands, just to simplify the sample). But what is important is I need to execute this command in the same process as CMD. If Jabaco opens new process I will get no connection info from my program. So is it possible to execute external operating system command with Jabaco
in the same process as CMD? If it is possible, I would be very happy if somene could write some sample.
Regards