We did something similar; however, per recommendations from Boston
Workstation, we have it set up so the script runs through completion
every five minutes instead of running continuously.  Boston felt that it
would be better if the script could run all the way through (i.e. check
for the file, exist - do something, not exist, exit).  

 

This works really well for us - the script runs all the way through
every five minutes and it really is less room for error or hang ups. 

 

Kim Scaccia, System Admin

Recovery Reimbursement

Patient Business & Financial Services

Halifax Medical Center

386-226-4590 opt 1 ext 2018

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lawrence,
Mitchell
Sent: Thursday, August 30, 2007 12:10 PM
To: [email protected]
Subject: [Talk] Method to watch a directory for a specific file
Importance: High

 

Is there a rules-based (or nice polished vba function) method for
watching a specific directory for a specific file?

 

I would like to incorporate printing to PDF from Meditech into our
scripting capabilities. I can do this by creating a pdf printer driver
(we have full adobe) that always prints to a specified directory,
specified file. During the creation of a PDF, adobe uses a .tmp file,
once the creation of the document is finished, adobe renames the .tmp
file to the actual PDF.

 

If I was able to "watch" the output directory for the file, I could then
pick that file up and move it to the proper destination/proper name, and
then close out the script.

 

So I would also need some way to turn off the timeout in BWS, as each
file may take some time to create and would be variable.

 

Anyone have any ideas for these two things? 

 

*       Watching a directory for a specified file (likely a vba
function/subroutine)
*       Turning off the timeout in BWS?

 

Thank you,

Mitch Lawrence

Lead Applications Analyst

Technical Support - NPR/Automation

CHRISTUS Information Management

*: [EMAIL PROTECTED]

 

 

Send a "thank you" <http://intranet.christushealth.org/spiritBuck/>  to
someone!

 

<<image001.jpg>>

Reply via email to