Page 1 of 1

Various projects in a batch file

Posted: Mon Jan 23, 2006 6:01 pm
by Tempman
Hello,
I have a file with various projects, for using it in windows task scheduler. I have:

@echo off
C:\path_to_winsin\winsin.exe /P=X /I /auto
C:\path_to_winsin\winsin.exe /P=Y /I /auto
C:\path_to_winsin\winsin.exe /P=Z /I /auto

But when I run the batch file, it only runs the last project ... :-? What I do wrong? Thanks beforehand.

Cheers...

Posted: Mon Jan 23, 2006 7:59 pm
by grigsoft
Try using this form:
start /w winsin.exe....
start /w winsin.exe....
It will start applications one by one, not all at the same time.

Posted: Tue Jan 24, 2006 8:41 am
by Tempman
It follows on running the last project :-(
Another idea? Thanks beforehand.

Cheers...

Posted: Tue Jan 24, 2006 8:48 am
by grigsoft
Hm, I have just tried that and it worked. How does currently your .bat look like?

Posted: Tue Jan 24, 2006 8:50 am
by Tempman
Hi,
uhm I've seen that when I call to winsin.exe (using P=project_name), he only runs the project that it is loaded in winsin.exe. Do you understand me? For example, in my batch file I have various lines with winsin.exe and with different projects, but when I run the batch file, he only runs the project that is loaded in winsin.exe ...
Is it a bug? Or can I put a file config like parameter in winsin.exe?
Thanks beforehand.

Cheers...

Posted: Tue Jan 24, 2006 9:08 am
by grigsoft
Oh, yes there is a bug here, probably you have hit it. Try using same syntax without /p=, just by
winsin.exe ProjectName

Posted: Tue Jan 24, 2006 2:03 pm
by Tempman
Hello,
thank you very much, it works correctly now.
Thanks again grigsoft.

Cheers...