Solved

print output to a unique filename in text format

Posted on 2013-12-03
2
497 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Migration of Exchange mailbox can be done with the ExProfre.exe tool. But at times, when the ExProfre.exe tool migrates the Exchange Server user profile, it results in numerous synchronization problems. Synchronization error messages appear in the e…
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

786 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