Howard,

Why not simply copy the files instead of moving them? You can run a
scheduled task to clean up your processing directory once a day or
something.

Craig.

-----Original Message-----
From: Owens, Howard [mailto:[EMAIL PROTECTED]] 
Sent: 21 December 2002 01:33
To: CF-Talk
Subject: RE: CFGurus ... your advice sought

Hey, my boss ... who's not even a programmer ... came up with a good
idea
. check the file size before processing, and move big files to another
folder for manual processing later.  

I decided to go in that direction.  It this case, it's a workable
solution.

H.


> -----Original Message-----
> From: Owens, Howard [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, December 20, 2002 3:19 PM
> To:   CF-Talk
> Subject:      RE: CFGurus ... your advice sought
> 
> I've thought storing the info in a database record ...
> 
> Would there be some way to use CFCatch to say ... "ok, record this
error
> and
> move on ... keeping looping through the directory ... pick up the next
> image
> in line and work with it ..."
> 
> ?
> 
> 
> 
> > -----Original Message-----
> > From:       Fregas [SMTP:[EMAIL PROTECTED]]
> > Sent:       Friday, December 20, 2002 1:24 PM
> > To: CF-Talk
> > Subject:    Re: CFGurus ... your advice sought
> > 
> > The type of app you are trying to make would be better suited to a
NET
> > windows service I think since you need this to run on a scheduled
basis
> > and
> > synchronize when things happen.  However, I realize that might not
be
> > desireable or possible.
> > 
> > I have some ideas but let me get some more info.  Could you maybe
> database
> > which files completed successfully and which were "Bad"?  If so, you
> could
> > have this occur in two scheduled tasks.  The first would conver the
> images
> > and store their filenames in a database (or XML or WDDX) as to
whether
> the
> > conversion was successful.  The second task could run one minute or
5
> > minutes later (hopefully, imagemagic will have removed its lock on
the
> > files
> > by then) and attempt to either move or delete all files that the
> database
> > says are completed or "bad".   If it succeeds, it could then mark
the
> > database record for each file as complete or just delete the record.
If
> > you
> > want, you could even put a CFTRY/CFCATCH block around the second
task
> and
> > do
> > some kind of logging or something on files that are unable to be
cleaned
> > up.
> > 
> > Fregas
> > 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to