Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to detect a new file exists
Message
De
09/04/2004 10:35:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00893528
Message ID:
00893542
Vues:
12
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform