General information
Category:
Coding, syntax & commands
Title:
Any way to lock a file that is not a .dbf table?
I have poked around quite a bit and have not been able to find a function that will test whether a non-.dbf file can be locked or not. I have an app that scans a directory for "eps" like files and then shoots them off to a printer (via Windows functions).
FLOCK() only works on tables. FOPEN() will open the file even if it is only partly written out (by the file generation mechanism)and so it seems to be out. I need FOPEN() to either fail if the file is still in the process of being created or I need some function that will try a lock.
I poked around in Windows functions but CreateFile() and then FileLock() looks a bit too complex for me (have only used a few Windows functions before so they take a bit to figure out how to call from Fox.).
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