[26905] in resnet
Re: printing to a random file name
daemon@ATHENA.MIT.EDU (Brian Gibson)
Wed Oct 19 16:58:20 2011
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <4E9F3954.1030700@wheatoncollege.edu>
Date: Wed, 19 Oct 2011 16:55:48 -0400
Reply-To: Resnet Forum <RESNET-L@listserv.nd.edu>
From: Brian Gibson <gibson_brian@WHEATONCOLLEGE.EDU>
To: RESNET-L@listserv.nd.edu
In-Reply-To: <348547030.788168.1319055961703.JavaMail.rim@b1.c14.bise6.blackberry>
Hi Adam,
Funny you mention that, I tried that today by setting a system variable
then pointing the local port to a file name like this
c:\queue\%PRINTFILE%
and it actually creates a file named %PRINTFILE%, it doesn't interpret
the variable :-(
For now I created a perl script that fires up at system startup and runs
continuously and it looks for the file
c:\queue\printfile
and if it finds it the file gets renamed/moved to another folder, that
is how I assure the file doesn't get written over.... not the best
solution but it seems to be working.
Thanks
-------- Original Message --------
Subject: Re: printing to a random file name
From: Brock, Adam <Adam_Brock@baylor.edu>
To: RESNET-L@LISTSERV.ND.EDU
Date: 10/19/2011 4:26 PM
> 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
> ___________________________________________________
--
___________________________________________________
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
___________________________________________________