[26884] in resnet

home help back first fref pref prev next nref lref last post

printing to a random file name

daemon@ATHENA.MIT.EDU (Brian Gibson)
Wed Oct 19 11:20:49 2011

MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID:  <4E9EEA2F.10907@wheatoncollege.edu>
Date:         Wed, 19 Oct 2011 11:18:07 -0400
Reply-To: Resnet Forum <RESNET-L@listserv.nd.edu>
From: Brian Gibson <gibson_brian@wheatoncollege.edu>
To: RESNET-L@listserv.nd.edu

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
___________________________________________________

home help back first fref pref prev next nref lref last post