batch file problem
Michel Adam
michel.adam at gmail.com
Thu Jun 7 18:39:14 CDT 2012
Nope. the blank line is actually not needed, since there are exactly as
many individual values supplied as are prompted.
Simplifying, the following does not work:
Created a batch file, xyz.bat, and tried it:
C:\FOAMbin>type xyz.bat
QTP
; comment
E
C:\FOAMbin>xyz.bat
C:\FOAMbin>QTP
IBM(R) Cognos(R) PowerHouse(R) 4GL 8.41G - QTP
(C) Copyright IBM Corp. 1982, 2010
> e ; I am typing the 'e' manually, since QTP is just waiting with a '>'
prompt
C:\FOAMbin>comment
'comment' is not recognized as an internal or external command,
operable program or batch file.
C:\FOAMbin>E
'E' is not recognized as an internal or external command,
operable program or batch file.
C:\FOAMbin>
Michel
On Thu, Jun 7, 2012 at 5:09 PM, ken weiland <ken_weiland at yahoo.com> wrote:
>
> in your example you are doing the following
> I have done a lot of mbatch qtp and quiz files with no problems
>
> if seems you are calling a quiz routine inside a qtp routine
> then means you would need 2 exits are the end
> c:
> > cd \foambin
> > rem QTP auto=C:\FOAMbin\XFSPR20D < %PHTEMP%\FFSPARAM.dat
> -- calling qtp at this point
> > QTP
> > execute C:\FOAMbin\XFSPR20D
> > 02
> > @
> > @
> > @
> >
> -- calling quiz at this point but have not exited the qtp process
> > execute C:\FOAMbin\XFSPR20Z
>
> this exits the quiz process that was started
> > exit
>
> -- you are calling a quiz routine while still withing the qtp call
> > QUIZ auto=C:\FOAMbin\XFSZR20Z
> -- your are now back to qtp routine
>
> -- question why are you running XFSPR20Z twice?
>
>
> let know if my thinking is correct
> - you commented out the qtp auto that would have started qtp and shut it
> down after it ran
> and now call qtp manually
> thus you have to add an exit qtp
>
> it looks like the batch stream is not correct
> qtp auto...
> quiz auto ...
>
> or
>
> qtp
> execute ....
> exit
>
> quiz
> execute ...
> exit
>
> or
>
> qtp
> execute .....
>
> quiz
> execute ....
> exit
>
> exit
>
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sowder.com/pipermail/powerh-l/attachments/20120607/730f68db/attachment-0001.htm>
More information about the powerh-l
mailing list