"george7a" <***@...> wrote:
>--- In ***@yahoogroups.com, Tim Musson <***@...> wrote:
>You miss-understood me. I will try to explain my self again.
>In the scripting langiage that I am using, I cannot check the
>returned value of Blat. I can only execute the exe and that's all!
I wonder what secret scripting language that might be, that
its name cannot be revealed?
>That's why I programmed a VB appliction that will execute blat and
>wait for it and then my script will call the VB application.
>I was wondering if there is a way to do this without using the VB
>application that I have developed. In other executables that I use
>there is a flag that you can give and as a result a file (done.file)
>will be generated to indicate that the exe has finished. I wanted to
>ask if there such thing in blat. If not is it easy to do?
a) That concept sounds weird.
b) No, there is no such option in blat.
c) Using the available blat source, you might be able to program
such a thing, but I seriously doubt that will make it in the
"official" distribution. If the environment/language you are
forced(?) to use is really handicapped in that regard, you can always
use a simple batch file as in (substitute the rem lines with actual
batch code, if you want/need to)(Assuming NT or better, where there
is a cmd.exe)
|:: Feed the parameters to the blat call
|rem Test errorlevel here, if you want
|rem Generate you done file here, using echo probably
Then call cmd.exe as your subprocess:
"cmd.exe <path_to_batch>\callblat.bat <any parameters for blat here>"
So one scripting language calling another for the rescue.
(If you want to be pompous and call MS batch syntax a scripting
At least no need to call yet another external program as your