Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locked files detecting ?
Message
 
 
À
09/07/2002 15:52:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00676804
Message ID:
00676844
Vues:
27
>Is there a way to detect if a non VFP file is open by a user? I have a VFP program that writes out a html file to a IIS4 directory/server. Problem is if someone has just pulled that html file up on their browser its opened and VFP cant touch it for about 30 seconds. I have IIS4 set to not keep HTTPs alive and disconnect timeout set to 0 seconds. Wish there was a utility to break the open connection!
>
You can try to open the file for Read/Write.
lnFH = FOPEN(lcPdfFile, 12)
IF lnFH > 0
  =FCLOSE(lnFH)
ELSE
  * File is open somewhere else
ENDIF
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform