<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span></span></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116"> </div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" dir="ltr" class="ms__id1116"> <font size="2" face="Arial"> <div style="margin: 5px 0px; padding: 0px; border: 1px solid rgb(204, 204, 204); height: 0px; line-height: 0; font-size: 0px;" class="hr" contentEditable="false" readonly="true"></div>  <b><span style="font-weight: bold;">From:</span></b> GCC Consulting &lt;rkreiss@gccconsulting.net&gt;<br> <b><span style="font-weight: bold;">To:</span></b> 'Richard Hane' &lt;yoresoft@sbcglobal.net&gt;; 'file Pro Mailing List' &lt;filepro-list@lists.celestial.com&gt; <br>
 <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, April 18, 2012 10:23 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> RE: question using a menu script<br> </font> </div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116"> <br>
<br><br>&gt; -----Original Message-----<br>&gt; From: filepro-list-bounces+rkreiss=<a href="mailto:verizon.net@lists.celestial.com" ymailto="mailto:verizon.net@lists.celestial.com">verizon.net@lists.celestial.com</a><br>&gt; [mailto:filepro-list-bounces+rkreiss=<a href="mailto:verizon.net@lists.celestial.com" ymailto="mailto:verizon.net@lists.celestial.com">verizon.net@lists.celestial.com</a>] On<br>&gt; Behalf Of Richard Hane<br>&gt; Sent: Tuesday, April 17, 2012 6:39 PM<br>&gt; To: file Pro Mailing List<br>&gt; Subject: question using a menu script<br>&gt; <br>&gt; Good afternoon list,<br>&gt; <br>&gt; Is it just me or has activity just died?<br>&gt; <br>&gt; Anyway, my question.<br>&gt; <br>&gt; First our system, 4 server Win 2003 using fpodbc and Print Wizard.<br>&gt; <br>&gt; I have 2 users that sometime print report to their printer and then again<br>&gt; would rather print to a pdf.&nbsp; We use Print Wizard.<br>&gt; <br>&gt; In the past I set up
 2 batch files, one for each operation.&nbsp; I also have<br>set up 2<br>&gt; copies of each report; 1 with the pdf defintion and 1 with the users HP<br>printer<br>&gt; type.<br>&gt; <br>&gt; My question is if use only 1 batch file but on the menu line defined a<br>script<br>&gt; (F5) and added the Print Wizard pfpostprint as seen below, run the<br>&gt; rreport&nbsp;then added another pfpostprint to set the state back to printer;<br>would<br>&gt; that work?<br>&gt; <br>&gt; I probably would have to set pfprinter 2 times as well.<br>&gt; <br>&gt; set pfpostprint=C:\Program Files\Rasmussen Software, Inc\Print Wizard<br>&gt; 4\printwiz /fpDF://V:\rickpdf\<br>&gt; <br>&gt; Thank in advance,<br>&gt; Rick Hane<br>&gt; Controller<br>&gt; Deluxe Stitcher Company Inc<br>&gt; ISP Stitching Products<br>&gt; <a href="http://www.deluxestitcher.com" target="_blank">www.deluxestitcher.com</a><br><br>Suggestion: Use a clerk session with a menu selection for printing or
 pdf.<br>Then use a system command to execute the correct option.&nbsp; I have set this up<br>for one of my clients and I works just fine.<br><br>Richard Kreiss<br>GCC Consulting<br>Office: 410-653-2813<br><br>Richard,</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">&nbsp;</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">Thanks for the idea.&nbsp; It sounds like this would be the answer; however when I set it up it just plain didn't work.&nbsp; Nothing changed.</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">&nbsp;</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">I set up a new file select_printer with 2 fields.&nbsp; Fld 1 ask press 1 for printer and 2 for pdf.&nbsp; Fld 2 asks for the printer name (ie. rick, eng,
 rickpdf, etc.</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">&nbsp;</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">Below is my processing..</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">&nbsp;</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">1. if: 1="1" </div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">then: ca="set pfprinter="{2{""; cb="set pfpostprint' "; goto dosys</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">&nbsp;</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">2:if: 1="2" </div><div style="font-family: times new roman, new york,
 times, serif; font-size: 12pt;" class="ms__id1116">then: ca="set pfprinter=rickpdf"</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">&nbsp;</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">3. if: 1="2" <br>then: cb="set pfpostprint=C:\Program Files\Rasmussen Software, Inc\Print Wizard 4\printwiz /fpDF://V:\rickpdf\"<br><br>4. if: 1="2"</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">then: goto dosys</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">&nbsp;</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">5. then: beep; errorbox "Must select 1 or 2 in 1st question"; restart</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"
 class="ms__id1116">&nbsp;</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">6. then: end<br>&nbsp;</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">7. label: dosys</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">if:</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">then: system ca</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">&nbsp;</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">8.if:<div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">then: system cb</div>&nbsp; </div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"
 class="ms__id1116">9. end</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">&nbsp;</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">Do you see my problem or what I did wrong?&nbsp;&nbsp; BTW I do get a syntax error on the end of line 3 after the V:\&nbsp; and yes this is a valid mapped drive.</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">&nbsp;</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">I should point out for what it's worth; I am running in the virtual XP mode on a Win 7 O/S.</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">&nbsp;</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">Thanks in
 advance</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116">Rick Hane</div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="ms__id1116"><var id="yui-ie-cursor"></var>&nbsp;</div> </div>  </div></body></html>