amarpreet
21st August 2002, 07:30
We are working in BIVC4.

We are developing in house HR package. To download attendance records from barcode reader we have to send a dos command to barcode reader.

Is there any way through which we can send a dos command from baan session.(like Shell function)

Natasha
21st August 2002, 07:48
try app_start()

amarpreet
21st August 2002, 09:24
thanks natasha

but this is giving error while compiling as

Unresolved reference to fuction 'app_start'.

can you please send me a script in which u had used this function.

thanks in advanve.

morpheus
21st August 2002, 09:38
Hello,
You can use either app_start() or run.prog().
Do read the difference bertween the two from the manual.

NPRao
21st August 2002, 09:41
you have to include the tools library to use those functions -


#pragma used dll ottdllbw

Natasha
21st August 2002, 09:47
amarpreet
You can use bic_info6.1 to extract out any comments contained in a dll.
Example:> bic_info6.1 ottdllbw

morpheus
21st August 2002, 09:48
Hello! Rao,
I don't think one needs to include the tools library. I wrote a script using app_start() as well as run.prog(), and for these I did not include any tools library.

NPRao
21st August 2002, 10:01
Morpheus,

You need to include the library to use the app_start() function.

Please refer to -

http://www.baanboard.com/programmers_manual_baanerp_help_functions_client_file_access_app_start

as mentioned, Context-ttdllbw library function needs to be used.

While if you refer to the -

http://www.baanboard.com/programmers_manual_baanerp_help_functions_starting_and_stopping_programs_run_baan_prog_run_prog

Context
Bshell function, so you need not include any tools library.

Please recheck, else I take back what I said and stand corrected.

morpheus
21st August 2002, 15:14
Hello! Rao,
My mistake!!
I forgot that I had included the library.
Thanks for the correction. :)

amarpreet
27th August 2002, 10:26
I'm using app_start & is OK. My next query is how to add a wait mode like run.prog("" ,"", RP_WAIT).

As I observed it starts DOS application and donot wait for DOS application to complete before executing next command/line.

Thanx

~Vamsi
27th August 2002, 10:33
Use app_status. Illustrated here (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=6094)