<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1491" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>windows 2000 advanced server</FONT></DIV>
<DIV><FONT face=Arial size=2>filepro 5.0.09</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have a visual basic ordering program that my
customers use. The order prog has a transmit button that FTP's an order.txt
file to an orders dir on my website. On my end, I have another FPT program that
downloads the order.txt file to a folder called orders on my computer. I am
using filepro with sleep to scan the orders dir every few</FONT><FONT
face=Arial size=2> seconds. If a file called "order.txt" exists,
I import it into Filepro, generate an invoice, print a pick sheet, and send
a confirmation back to the website. The visual basic order program will get the
response if all works well.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I want to make this process bulletproof, if at all
possible. The biggest problem I see is, what if someone in my office is printing
at the same time this automated process tries to print. The automated process is
going to sit there saying "filepro error occurred, request output running on
file, etc..."</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>What I would really like to do is, as soon as I see
the file in the orders dir, check if output file is locked. If it is not locked,
then lock it. NOW import file in, generate invoice, unlock and print pick
sheet, respond back successful. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I guess the whole point is to avoid hitting the
"filepro error occurred, request output running on file" I don't know the best
way to do it. </FONT><FONT face=Arial size=2>Has anyone done similar
stuff.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any help will be greatly appreciated</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank You, </FONT></DIV>
<DIV><FONT face=Arial size=2>Mike Fedko</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV></BODY></HTML>