deleting pdf files

rival

Active Member
Hello,

Has anyone some tips about deleting PDF jobs on the server.

Has onyone a script were it automatically deletes the files older than ... days.

If i purge the records in submitted reports, the pdf jobs stay on the server.

Regards,

Ronald
 
Ronald,

You may want to review the thread, "Printqueue file maxed out."

Conceptually, there are two steps. One is to clear the actual PrintQueue.
The other is to clear the table that contains the pointers to the PDFs
within the queue. You need to validate/cleanse both for synchronicity.

Depending on your OS/DB... things may work differently.

Daniel
[email protected]
www.existinglight.net

AS/400 XE SP 18



Daniel Bohner
[email protected]
www.existinglight.net
JDE - XE, SP 18 & AS/400 V4R5.0
JDE - B7331 & MS SQL 7x
 
Look at reports R9861101 and and R9861102. It is documented on the KG on OTI-01-0112.

Thanks to PaulaClark for this contribution in another post.
 
Try creating your own versions for R986110, I use it and it works great.
 
Excuse my lack of knowledge. But can someone please tell me where I would input the Doc Id to find the pertinent doc? I've tried the search button but come up empty.

Thank you kindly.
 
Go to the KG search screen and enter the document id into the search field.
Expand Support, SARs/Knowledge and check Knowledge. Click Search and the
document will be found.



Walt Sellers
Heil Environmental Industries, Ltd.
OW B733.2 SP10, Citrix, Windows NT TS2000, Oracle 8.1.6
 
As a side note to this, how is everyone handeling the pdf's on the citrix servers? I am currently manually deleting 4,722 pdfs approx 855 meg. I am thinking about trying to write either a VB or C++ program to do this. So, I am interested in everyone elses ideas on deleting these.

Thank you.
 
How come you have a local datasource for you citrix servers. On my setup I do not have any PDF's on my servers everything goes to the enterprise server I do not allow my users to run anything locally on the citrix boxes.
 
What I think he is asking is how does everyone manage the .pdfs in the
printqueue on the citrix servers, the reports are not actually running
locally. When a client views a report from the 'view submitted
reports', it places a copy of it into the client (citrix) printqueue.
You can very quickly end up with thousands of PDFs in the printqueue
directory of the terminal server. I just delete all of them when I
perform the cleanup on the enterprise server.

John



----------------------------------------------------------
OneWorld Xe (B733.3)
Update 2, SP 16
Oneoffs: SP16_011, _018, _019
Running on: WIN2K/SP2, SQL2k/SP2
Metaframe 1.8a
----------------------------------------------------------




Xe, Update2, SP16
SQL2k, Win2k
Metaframe 1.8a
 
Cleo -

If a user opens a 'submitted' PDF on a Citrix box (from the Works Submitted
Jobs), the PDF gets shoved into the Citrix's PrintQueue directory. The user
on Citrix doesn't have to run UBEs locally to have them show up on the
Citrix box.

Daniel
[email protected]
AS/400 XE PD18





Daniel Bohner
[email protected]
www.existinglight.net
JDE - XE, SP 18 & AS/400 V4R5.0
JDE - B7331 & MS SQL 7x
 
The job isn't running locally. It's when they click the view pdf, the pdf comes down to the WTS and sits there till deleted.
 
Jeremey,

regarding a program to delete PDF files on your citrix servers. Sometime back I wrote one for the fat clients on our network. With a minor change to specify the location of your PrintQueue directory(s?) on Citrix it may work for you. Program is written in VB 6. Source code is attached. Summary follows:

' DESCRIPTION
' ===========
' This program is designed to be run in a non-interactive mode from a batch file which is,
' in turn, run from a scheduler. It obtains a Domain Name and Retention period (days) from
' the command line argument. Finds machines located on the same domain and looks for the
' \B7\PrintQueue directory on either the D or C drives (uses D$ and C$ shares).
' Files within the directory that are older than the given retention period (in days) are
' Deleted. Network Administrator privileges are required by the account running the application.
'
' COMMAND LINE SYNTAX
' ===================
' OWPQPurge.exe <Domain>, <Retention Days>
 

Attachments

  • 34041-OWPQPurge.zip
    4.4 KB · Views: 111
We don't allow users to run pdf's on Citrix... I'm surprised you are doing
so...

:)






Lori
OW Xe SP16 Update 2
SP19 in test mode
AS400 V5R1 NT
Citrix
email: [email protected]
 
When you view a report you always get a local copy.



OW733.3 Xe SP 14.2
Enterprise Server - Intel NT + Oracle 8.0.6
Client - Citrix TSE + 4 NT PC's for development
 
Thank you Larry. I'll take a look at it. From the summary it sounds like exactly what I was thinking about!
 
Try
"http://members.optushome.com.au/apastuhov/DeleteFilesOlderThan.htm"

For subfolders, you can use a form of "for" shell command...

Regards,
Alex.
 
Back
Top