Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to detect a new file exists
Message
From
09/04/2004 10:35:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00893528
Message ID:
00893542
Views:
17
>I am running a VFP process on a server where other computers can remotly send a file to a given directory. I need to be able to respond quickly when the file has been sent. The file could be any name and size. I could set a timer to check every second or so that would run an adir() process to detect new files but that would mean that I would be constantly banging away at it. Is there any other way that would not take up as much server resources?
>TIA
>John.

To reduce the processing, you might consider separating processed and non-processed files. New, non-processed files go into a special directory; as soon as you detect and process them, you move them into the definitive directory.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform