[futurebasic] Re : [FB] Watched folder

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 1999 : Group Archive : Group : All Groups

From: "jonathan" <jonathan@...>
Date: Thu, 08 Apr 1999 15:28:22 +0200
> I some time ago wrote a program which watches a folder, then if it finds
> a file in that folder it sends it down the serial port to a Zebra printer.

Why anyone would want to rpint Zebras beats me ;-)

> All works well except for larger files. Sometimes the program will start
> to do its stuff to a file that isn't completely there yet (due to its
> larger size), and the transfer fails. Can someone tell me a good way to
> make my program hold off until the file is completely copied over there?
> I'm currently not getting (or maybe not checking) for any error messages
> from the system.

why not create your original file as invisible. And change the attribute
to visible once it has been completely transfered. Then change your
'detect something in folder code' to ignore invisible files (which it should
do anyway). Thus 'visibility' serves as a flag deciding whether a file
can be 'Zebrad'.

jonathan