patwanirav
5th November 2012, 05:41
I want to know the alternative of Shell Command in BaaN Windows Environment.
for example, what is the alternative of the shell(command,0) in BaaN windows environment.
Thanks in advance.
bdittmar
5th November 2012, 12:50
I want to know the alternative of Shell Command in BaaN Windows Environment.
for example, what is the alternative of the shell(command,0) in BaaN windows environment.
Thanks in advance.
Hello,
from ERP-DEV Guide :
run.baan.prog(), run.prog()
--------------------------------------------------------------------------------
Syntax
long run.baan.prog( const string progname, const string arguments, long mode, [ string stdin, string stdout, string stderr ])
long run.prog( const string progname, const string arguments, long mode )
Description
The function run.baan.prog() runs a BAAN program.
The function run.prog() runs an operating system command. It is a system-dependent function. It must not be used in applications that are distributed across different platforms.
Arguments
progname
The name of the program or command to be executed. run.baan.prog() expands progname to $BSE/bin/progname{release}.
If the progname argument in run.prog() does not supply the full path (absolute or relative), the system searches for the command using the standard facilities of the operating system platform (for example, under UNIX, all PATH elements are searched).
The argument can specify a remote host. For example, if progname is “tahoe!sort”, the function runs the sort program on the tahoe host. The maximum number of remote programs that can run concurrently depends on available system resources.
arguments
The function start the program or command with the parameters specified here.
mode
This specifies the execution mode of the program or command. The possible values are:
RP_WAIT wait for the program to finish
RP_NOWAIT run as a background program
stdin
Reads from the file stdin.
stdout
Writes to the file stdout.
stderr
Writes error messages to stderr.
Note
Output from the program cannot be displayed. If the -q switch is available, use this to output the program results to a file.
Use these functions instead of the shell() function used in previous versions of BAAN.
Return values
0 program executed successfully
<0 program could not be started
>0 program did not execute successfully
Note that the return value cannot be retrieved when the mode argument is set to RP_NOWAIT.
Regards
vamsi_gujjula
4th December 2012, 15:25
if you want to run any application on windows.. then you can use app_stat()..