Page 1 of 1

Batch file

Posted: Tue Oct 16, 2018 11:31 am
by gauguy
How to request the execution of a program.
Which switch

cmd

CALL BrownRecluse.exe test.brp

CALL BrownRecluse.exe ???? test.brp

CALL BrownRecluse.exe \n???? test.brp

Re: Batch file

Posted: Tue Oct 16, 2018 12:36 pm
by Support
simply run the .brp file as oppose to the BrownRecluse.exe, the same way you'd run a .txt file which open the Notepad.

for a command propmpt or a batch file, do not include the word CALL , simply use "BrownRecluse.exe test.brp" or "test.brp" alone.

At the beginning of your script, you need to include this...

Initialize(AutoRunOnOpen,ExitOnFinish);

to run the script when BR opens it and to exit BrownRecluse when the script is done running.

Re: Batch file

Posted: Wed Oct 17, 2018 10:25 am
by gauguy
Thank you, everything is ok

Re: Batch file

Posted: Wed Oct 17, 2018 10:32 am
by gauguy
Solution:

CALL "c:\Program Files (x86)\SoftByte Labs\BrownRecluse\BrownRecluse.exe" d:\D\Canada411\BrownResclude\BrownRecluse-1001.brp
pause

-------------------------------------------------------------------------------------------------
Initialize(AutoRunOnOpen,ExitOnFinish, CloseOnFinish);
Output.Clear;
DecodeDate(Date, [xAn, xMois, xJour, xHeures, xMinutes, xSecondes], [year, Month, Day, hour, minute, second ]);
// output((xHeures * 3600) + (xMinutes * 60) + xSecondes);

Link = New(URL);
F = New(File);

Path = 'd:\d\canada411\Canada411\450\1001-Anna-Laberge\';

FcParam = New(File);
Tempo = Path + '_1001VilleNoms.txt';
FcParam.Open();

if not FcParam.Open(Tempo) then
Output('Erreur ouverture fichier ' + #13 +#10 + Tempo);

Re: Batch file

Posted: Fri Oct 19, 2018 2:44 pm
by Support
perfect :)