veyant
30th May 2005, 12:18
hi,
i have 2 files on server. one of them is executable file and another is ascii file. now if i run file 1 with first argument as file name of 2nd file. it creates a 3rd ascii file.
I want to call this executable file from client PC.
i want to know that if a program calls this executable program with help of app_start function of ottdllbw. will it create the 3rd file on server or on client pC. i want it should be generated on server itself.
please advice.
Sandeep
mark_h
30th May 2005, 16:00
Why not just let the client side program create the third file on the client, then the Baan code could use the client2server command to move it to the server. When you run the app_start for the session make it wait for it to complete(use app_status), then when it completes just use client2server to go grab the file and move it to the server.
dorleta
30th May 2005, 18:09
And of course the always forgotten standard way.
function extern long tgwms0004.start.application(const string application(),
const string arguments (),
domain tgyenox local,
long mode,
[long pop_up])
{
DLLUSAGE
This function starts the application with the given arguments. The given
application may not be empty, the arguments may be empty.
Parameters:
application the application which must be started
arguments the arguments with which the application will be started
local if tgyenox.yes then the application will be started on the
local machine, otherwise it will be started on the server.
Note that only on BW the tgyenox.yes should be used, in which
case a: "create.object(DsCapplication, 0, ...)" will be done.
In all other cases either a "shell()" or "run.prog()" will be
done depending on the current Baan version.
This function does NOT check whether the current platform is BW.
mode the mode needed for "shell()" or "run.prog()"
pop_up whether (if true) or not (if false) pop-ups on errors must be
given. Default is: false.
Return value:
= 0 successful completion, application started
< 0 some error occurred