Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell if a text file is open by another process.
Message
 
À
20/05/1999 10:12:29
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00220819
Message ID:
00221032
Vues:
54
>>>>we pull text files into tables for processing nightly. The text files are downloaded by FTP from various machines. We need to be able to tell when the text files are closed by this process, because our processing can't work on these files until they are completely downloaded.
>>>
>>>If you know the file names, you could poll with a timer and FOPEN(), maybe?
>>
>>fopen doesn't care if the file is in use by another process (non-foxpro), does it? doesn't appear to...
>AFAIK it does and tries exclusive access. fcreate() sure cares returning -1 and ferror() returns 5 - Access denied.
>Cetin

i'll check that if the in house solutions don't work...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform