<html><head></head><body bgcolor="#FFFFFF"><div>Windows does read data from the batch file. After it executes a command it expects it to go away and do its thing. Next line in the batch file is the next command it will execute. <br><br>Sent from my iPhone </div><div><br>On 2012-06-07, at 12:34, Michel Adam <<a href="mailto:michel.adam@gmail.com">michel.adam@gmail.com</a>> 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"><<a href="mailto:michel.adam@gmail.com" target="_blank">michel.adam@gmail.com</a>></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 < %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. 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:\>c:</font></div>
<div><font face="courier new, monospace" size="4"><br></font></div><div><font face="courier new, monospace" size="4">C:\>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>dir jfsrp20a.bat</span></div>
<div><font face="courier new, monospace" size="4"> Volume in drive C has no label.</font></div><div><font face="courier new, monospace" size="4"> 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"> 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 11</a>:15 264 JFSRP20A.bat</font></div>
<div><font face="courier new, monospace" size="4"> 1 File(s) 264 bytes</font></div><div><font face="courier new, monospace" size="4"> 0 Dir(s) 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>jfsrp20a</font></div><div><font face="courier new, monospace" size="4"><br></font></div><div>
<font face="courier new, monospace" size="4">C:\FOAMbin>c:</font></div><div><font face="courier new, monospace" size="4"><br></font></div><div><font face="courier new, monospace" size="4">C:\FOAMbin>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>rem QTP auto=C:\FOAMbin\XFSPR20D < 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>QTP</font></div><div>
<font face="courier new, monospace" size="4">IBM(R) Cognos(R) PowerHouse(R) 4GL 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">></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 &lt;password&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>