Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining locked file
Message
From
27/05/1999 08:57:44
 
 
To
27/05/1999 08:50:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00223384
Message ID:
00223390
Views:
22
lnFileStat = FOPEN('drive:\path\file.ext',12)
IF lnFileStat > 0
** File can be opened, need to close it **
=FCLOSE(lnFileStat)
ELSE
** Can't open file for write, log error **
ENDIF


>We're using VFP 5.0 on a novel network. One of the processes of our nightly batch routine is to print a report to a text file on one of our shared drives. Is there anyway to determine if anyone has this text report open/locked before we try and write to it? Is sometime happens that someone will forget to close the text report at the end of the day and our nightly routine crashes since it can't write to that file. Any help would be appreciated.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform