General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only