Solved

print output to a unique filename in text format

Posted on 2013-12-03
2
520 Views
Last Modified: 2013-12-16
I have a customer that has a program running on a Windows XP machine. It is set up to print out 'counts' of their data every so often. Right now, the only option is to print to a printer so that program is limited to where it can print. We would like to redirect or set up a new printer that would print to a text file with a unique name such as the date and time stamp. We can set up the generic text printer but it always asks for an output file name. we would like that to be automatic.
Is this possible?
0
Comment
Question by:johnny181
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Expert Comment

by:Ram Balachandran
ID: 39693825
Not sure if you can install PDF Creator Software, so that you can select a file to print

NOVA Pdf printer has that option :How to create a PDF file without displaying the Save PDF file as dialog



http://www.novapdf.com/kb/how-to-create-a-pdf-file-without-displaying-the-save-pdf-file-as-dialog-140.html
0
 
LVL 38

Accepted Solution

by:
hdhondt earned 250 total points
ID: 39694890
You can select a fixed filename for the printer output. Go to Printer Properties > Ports. Create a new Local Port. Give it the file name (and path) as the port name, e.g. C:\test\output.txt. That way the output will always be sent to that file.

Now create a batch file that checks for the existence of that file. When it finds it, it changes the name to a one of your liking. Then it waits a few seconds (or whatever time is suitable) before it tries again.
0

Featured Post

Plug and play, no additional software required!

The ATEN UE3310 USB3.1 Gen1 Extender Cable allows users to extend the distance between the computer and USB devices up to 10 m (33 ft). The UE3310 is a high-quality, cost-effective solution for professional environments such as hospitals, factories and business facilities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question