Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any way to lock a file that is not a .dbf table?
Message
From
03/04/2000 17:17:28
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Any way to lock a file that is not a .dbf table?
Miscellaneous
Thread ID:
00354616
Message ID:
00354616
Views:
62
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
Map
View

Click here to load this message in the networking platform