[26902] in resnet
Re: printing to a random file name
daemon@ATHENA.MIT.EDU (Brock, Adam)
Wed Oct 19 16:28:57 2011
Content-Language: en-US
Content-Type: text/plain; charset="Windows-1252"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Message-ID: <348547030.788168.1319055961703.JavaMail.rim@b1.c14.bise6.blackberry>
Date: Wed, 19 Oct 2011 15:26:00 -0500
Reply-To: "Brock, Adam" <Adam_Brock@baylor.edu>
From: "Brock, Adam" <Adam_Brock@baylor.edu>
To: RESNET-L@listserv.nd.edu
In-Reply-To: <CANtPpk7ud6XxKPzJ1dXTrOetV0YRZKUC_A0ZcrG+f_g8CJ8OXw@mail.gmail.com>
Could you put some system variables into the filename field, and have a script running to update those variables every second or two?
Sent from my Brockberry
________________________________
From: Mike King <me@mpking.com>
Sender: Resnet Forum <RESNET-L@LISTSERV.ND.EDU>
Date: Wed, 19 Oct 2011 14:26:18 -0500
To: RESNET-L@LISTSERV.ND.EDU<RESNET-L@LISTSERV.ND.EDU>
ReplyTo: Resnet Forum <RESNET-L@LISTSERV.ND.EDU>
Subject: Re: [RESNET-L] printing to a random file name
I used to administer Meridian Mail, and the only way to get reports out of it were to print them using procomm plus.
I used the following directions to get text formatted versions of print jobs , so i could import them into excel for further manipulation.
I don't think this will help you since you state you want PCL format, but it might.
1. Create a Generic / Text Only Printer. Do this (on Windows XP)by:
1. Select Add a Printer
2. Hit next on the Wizard, Select "Local Printer Attached to this computer", Deselect "Automatically detect and install my Plug and Play Printer" and hit Next
3. In the "Use the Following Port:" dialog, from the drop down box, select FILE: (Print to File) and press Next.
4. In the next screen, From the Manufacturer select Generic and in the Model box select Generic / Text Only and hit Next.
5. Hit Next on the rest of the dialog boxes, and you should be done. You might want to change the Default printer question to No.
2. In Procomm, select the Generic Text Only Printer in the Printer Setup dialog
3. In Notepad, type out the path of the file you want to save it to, and put copy it to the clipboard.
4. Select Print from Procomm
5. A box will pop up asking for the filename. Paste the filename you prepared in step 3 into this box. You have to do this VERY quickly.
6. Leave it alone until Meridian Mail stops saying Working.
On Wed, Oct 19, 2011 at 11:18 AM, Brian Gibson <gibson_brian@wheatoncollege.edu<mailto:gibson_brian@wheatoncollege.edu>> wrote:
Hi all,
I sent this message on the 16th and I see it in the archives but I never received confirmation and my colleague who is on the list said he didn't get a copy.... any way, sorry for the double posting if you did receive this before.
I am trying to capture formatted print jobs from a Windows print queue and save the file to a random file name and I am looking to do it without buying any products.
I found I can set a print queue to be of type "local port" and point it to a file path, for example
c:\queue\printfile
and as expected, when I print a job the file c:\queue\printfile contains the formatted print job (for example, a PCL formatted file).
The problem is, if I print a second file it overwrites c:\queue\printfile. I'm afraid I won't be able to process the first job before the second one overwrites it.
So far the only way I have found to do this is have a running script that checks for the existence of c:\queue\printfile and have it be moved to a new location.
Any thoughts on how to tackle this?
Thanks!
--
++++++++++++++++++++++++++++
Brian Gibson
Systems Administrator
Wheaton College
___________________________________________________
You are subscribed to the ResNet-L mailing list.
To subscribe, unsubscribe or search the archives,
go to http://LISTSERV.ND.EDU/archives/resnet-l.html
___________________________________________________
___________________________________________________ You are subscribed to the ResNet-L mailing list.
To subscribe, unsubscribe or search the archives, go to http://LISTSERV.ND.EDU/archives/resnet-l.html ___________________________________________________
___________________________________________________
You are subscribed to the ResNet-L mailing list.
To subscribe, unsubscribe or search the archives,
go to http://LISTSERV.ND.EDU/archives/resnet-l.html
___________________________________________________