Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File opened by another program
Message
 
À
15/08/2001 06:12:07
Harry Wit, De
VGZ Zorgverzekeraar
Arnhem, Pays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00543951
Message ID:
00543954
Vues:
12
This message has been marked as the solution to the initial question of the thread.
Try opening it for writing:
lnHand = fopen(lcFilename, 2)
if lnHand > -1
  =fclose(lnHand)
  erase (lcFilename)
else
  wait wind "File in use by another" nowait
endif
Cheers,

Andrew

>How can I track if a file is opened by another program, before I delete it.


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform