Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locked files detecting ?
Message
 
 
To
09/07/2002 15:52:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00676804
Message ID:
00676844
Views:
29
>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--
Previous
Reply
Map
View

Click here to load this message in the networking platform