printing to NULL - ie run print - but NO output

Author: knut.dybendahl@gmail.com (Knut)

Hi ya'all.... Somewhere in the back of my brain I remember doing this years ago - but I cannot find the hook to fish it out.... must be age.... Confused I need to print to a 'bit bucket' - on unix /dev/null - but on Windows.... I've tried :NUL / #>NUL: and a few other variations, but no joy.. Frown Anybody out there who remember the 'way' to do it? Cheers, Knut

6 Comments

  1. Hi Knut, unfortunately, Windows is a bit different from the good old DOS "print to NUL". But there are some options in the PRATT to print to the bit-bucket as the documentation says in "Print Queue", you can directly assign a port, so set it to "PORT" and assign "NUL:" to the PRINT OPTIONS If this does not work, just enter @delfile.bat (or #delfile.bat for synchonous execution) in the PRINT QUEUE. As the printfile name is added as first argument, you can just delete the file *.P00 there Uli P.S. Or you can specify a NUL printer as shown in http://www.barrcentral.com/help/beps/Printing_to_a_NUL_printer.htm


    Author: ulrich-merkel (ulrichmerkel@web.de)
  2. Hi Uli, Thank you for your reply.... Well, yes - the delfile.bat option could have worked - but had to close off that option since I might not have (guaranteed) permission to write a file to the file system... Unless I grab / find the Windows Temp dir and push all xxx.pxx files there - then delete... The other option - using a windows null printer - I;ll have to do some research on how to automate the setup of this as I would have to create the printer at installation time of the Uniface app.... Somehow I was hoping for an 'easier' solution... Cheers, Knut


    Author: Knut (knut.dybendahl@gmail.com)
  3. Hi Knut, what about the PRATT with the PORT and NUL: ? this looked for me as an option which does not have the "external" obstacles you mentioned.


    Author: ulrich-merkel (ulrichmerkel@web.de)
  4. Hi Knut I Had the same problem because I wanted to have the "current page/max page" on invoices, so I've created a printer with a NULL port .works fine.


    Author: mpservices (mps59@orange.fr)
  5. Hi Uli, Duh - that was the 'hook' I needed.... I was searching for something else but, yep, that will do the trick! Thx heaps. Knut


    Author: Knut (knut.dybendahl@gmail.com)
  6. Hi Knut, glad to hear my suggestion worked for you. Uli


    Author: ulrich-merkel (ulrichmerkel@web.de)