suhas-mahajan
14th June 2007, 10:54
Hi All,

I would like to run a external program in minimized mode. I am trying this by following way, Could you please correct me, whats wrong there?

comd = "start/min"&chr$(32)&"help > c:\help.txt"
ret = app_start(comd,"","","","")
suspend(500)

Already I have tried different programs with full path.

regards,

-Suhas

suhas-mahajan
14th June 2007, 11:08
Expecting quite similar to this - http://www.baanboard.com/baanboard/showthread.php?t=24149&highlight=app_start

regards,

-Suhas

en@frrom
14th June 2007, 12:14
I have solved such situations in the past when wanting to activate a batch-file in minimized mode, by creating 2 batch-files. Batch-file 1 has something like this:
@ECHO OFF
start /MIN batch2.bat
exit

and batch2.bat is then the actual batch file...

So you could apply the same I think activating any other application from batch-file 1, and in BaaN you activate the batch-file instead of the actual desired application, which will in turn activate the application...

Hope this helps...

Regards,
Eli Nager

suhas-mahajan
14th June 2007, 12:22
Thanks Eli,

But did you tried it from BaaN?

It seems difficult to put my program with parameter in .bat file.

regards,

-Suhas

en@frrom
14th June 2007, 12:48
It shouldn't be any different than in BaaN. In Baan you should just activate your batch file, and in your batch-file you start your application.

For instance for starting notepad in batch file you write:
@ECHO OFF
start /MIN notepad.exe
exit

Regards,
Eli Nager

suhas-mahajan
15th June 2007, 12:45
Thanks Eli,

After tiring doing all the combinations, I put my commands into batch file in the loop and ran from BaaN and seems working fine.


regards,

-Suhas