<html><head></head><body bgcolor="#FFFFFF"><div>Windows does read data from the batch file. &nbsp;After it executes a command &nbsp;it expects it to go away and do its thing. &nbsp;Next line in the batch file is the next command it will execute.&nbsp;<br><br>Sent from my iPhone&nbsp;</div><div><br>On 2012-06-07, at 12:34, Michel Adam &lt;<a href="mailto:michel.adam@gmail.com">michel.adam@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>Sorry, that should have been page 137 to 139, especially the example on page 139.<div><br></div><div>Michel<br><br><div class="gmail_quote">On Thu, Jun 7, 2012 at 11:28 AM, Michel Adam <span dir="ltr">&lt;<a href="mailto:michel.adam@gmail.com" target="_blank">michel.adam@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi listers,<div><br></div><div>trying to run a batch file and have QTP prompt for a few parameters (after RTFM the QTP manual, page 137).</div>

<div><br></div><div>QTP will just stop cold and prompt without reading the parameters. What am I missing?</div>
<div><br></div><div><br></div><div>The bat file is:</div><div><br></div><div><br></div><div><div><font face="courier new, monospace" size="4">c:</font></div><div><font face="courier new, monospace" size="4">cd \foambin</font></div>


<div><font face="courier new, monospace" size="4">rem QTP auto=C:\FOAMbin\XFSPR20D &lt; %PHTEMP%\FFSPARAM.dat</font></div><div><font face="courier new, monospace" size="4">QTP</font></div><div><font face="courier new, monospace" size="4">execute C:\FOAMbin\XFSPR20D</font></div>


<div><font face="courier new, monospace" size="4">02</font></div><div><font face="courier new, monospace" size="4">@</font></div><div><font face="courier new, monospace" size="4">@</font></div><div><font face="courier new, monospace" size="4">@</font></div>


<div><font face="courier new, monospace" size="4"><br></font></div><div><font face="courier new, monospace" size="4">execute C:\FOAMbin\XFSPR20Z</font></div><div><font face="courier new, monospace" size="4">exit</font></div>


<div><font face="courier new, monospace" size="4">QUIZ auto=C:\FOAMbin\XFSZR20Z</font></div></div><div><br></div><div><br></div><div><br></div><div>The 'rem' statement is from a prior attempt, which works, of having QTP execute the run and get the values for the prompts from a file (FFSPARAM.dat).</div>


<div><br></div><div><br></div><div>when testing, the results are:</div><div><br></div><div>--------------</div><div><br></div><div><div><font face="courier new, monospace" size="4">Microsoft Windows [Version 6.1.7601]</font></div>


<div><font face="courier new, monospace" size="4">Copyright (c) 2009 Microsoft Corporation. &nbsp;All rights reserved.</font></div><div><font face="courier new, monospace" size="4"><br></font></div><div><font face="courier new, monospace" size="4">G:\&gt;c:</font></div>


<div><font face="courier new, monospace" size="4"><br></font></div><div><font face="courier new, monospace" size="4">C:\&gt;cd foambin</font></div><div><font face="courier new, monospace" size="4"><br></font></div><div><span style="font-family:'courier new',monospace;font-size:large">C:\FOAMbin&gt;dir jfsrp20a.bat</span></div>


<div><font face="courier new, monospace" size="4">&nbsp;Volume in drive C has no label.</font></div><div><font face="courier new, monospace" size="4">&nbsp;Volume Serial Number is 8C96-214D</font></div><div><font face="courier new, monospace" size="4"><br>


</font></div><div><font face="courier new, monospace" size="4">&nbsp;Directory of C:\FOAMbin</font></div><div><font face="courier new, monospace" size="4"><br></font></div><div><font face="courier new, monospace" size="4"><a href="tel:2012-06-07%20%C2%A011" value="+12012060711" target="_blank">2012-06-07 &nbsp;11</a>:15 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 264 JFSRP20A.bat</font></div>


<div><font face="courier new, monospace" size="4">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1 File(s) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;264 bytes</font></div><div><font face="courier new, monospace" size="4">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 Dir(s) &nbsp; 1,863,245,824 bytes free</font></div>


<div><font face="courier new, monospace" size="4"><br></font></div><div><font face="courier new, monospace" size="4">C:\FOAMbin&gt;jfsrp20a</font></div><div><font face="courier new, monospace" size="4"><br></font></div><div>


<font face="courier new, monospace" size="4">C:\FOAMbin&gt;c:</font></div><div><font face="courier new, monospace" size="4"><br></font></div><div><font face="courier new, monospace" size="4">C:\FOAMbin&gt;cd \foambin</font></div>


<div><font face="courier new, monospace" size="4"><br></font></div><div><font face="courier new, monospace" size="4">C:\FOAMbin&gt;rem QTP auto=C:\FOAMbin\XFSPR20D &lt; C:\Users\madam\AppData\Local\PHTemp</font></div><div>


<font face="courier new, monospace" size="4">\FFSPARAM.dat</font></div><div><font face="courier new, monospace" size="4"><br></font></div><div><font face="courier new, monospace" size="4">C:\FOAMbin&gt;QTP</font></div><div>


<font face="courier new, monospace" size="4">IBM(R) Cognos(R) PowerHouse(R) 4GL &nbsp;8.41G - QTP</font></div><div><font face="courier new, monospace" size="4">(C) Copyright IBM Corp. 1982, 2010</font></div><div><font face="courier new, monospace" size="4"><br>


</font></div><div><font face="courier new, monospace" size="4">&gt;</font></div><div><br></div></div><div>------------</div><div><br></div><div>and that is it. QTP just stops there and waits for input.</div><div><br></div>


<div>Is page 137 of the QPT reference manual accurate?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Michel Adam</div><div><a href="mailto:michel.adam@gmail.com" target="_blank">michel.adam@gmail.com</a></div>


</font></span></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>--</span><br><span>= = = = = = = = = = = = = = = = = = = = = = = = = = = =</span><br><span>Mailing list: <a href="mailto:powerh-l@lists.sowder.com">powerh-l@lists.sowder.com</a></span><br><span>Subscribe: 'subscribe' in message body to <a href="mailto:powerh-l-request@lists.sowder.com">powerh-l-request@lists.sowder.com</a></span><br><span>Unsubscribe: 'unsubscribe &amp;lt;password&amp;gt;' in message body to <a href="mailto:powerh-l-request@lists.sowder.com">powerh-l-request@lists.sowder.com</a></span><br><span><a href="http://lists.sowder.com/mailman/listinfo/powerh-l">http://lists.sowder.com/mailman/listinfo/powerh-l</a></span><br><span>This list is closed, thus to post to the list you must be a subscriber.</span><br><span>Add 'site:lists.sowder.com powerh-l' to your search terms to search the list archive at Google.</span></div></blockquote></body></html>