Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FOPEN does not recognise file opened with other application
Message
De
02/09/2004 12:01:35
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
FOPEN does not recognise file opened with other application
Divers
Thread ID:
00938799
Message ID:
00938799
Vues:
81
Hi

Our client uplaods files into a DOS PC. A FoxPro application copies files from the DOS machine into another folder. The upload connection is slow and usually files are quite large. I do not want to copy a file while it is still being uploaded. I tried FOPEN() with read-write unbuffered option hoping that it will fail while the file is being uploaded, but it doesn't. To confirm this, I opened a text file on my local drive using Notepad, and I was able to open it using FOPEN() and I was also able to write into it using FWRITE()! (while it was still open in Notepad).

Is there a way in FoxPro to findout if a text file is open by any Windows application?

Thanks.
- Ravi Taxali
Visual FoxPro Made Simple An excellent book for beginners as well as experienced programmers
Never Forget Again. Setup Email Reminders.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform