Solved

print output to a unique filename in text format

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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…
Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

910 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now