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
De
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:
00220834
Vues:
29
>>>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform