Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell if a text file is open by another process.
Message
From
20/05/1999 10:12:29
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00220819
Message ID:
00220834
Views:
30
>>>we pull text files into tables for processing nightly. The text files are downloaded by FTP from various machines. We need to be able to tell when the text files are closed by this process, because our processing can't work on these files until they are completely downloaded.
>>
>>If you know the file names, you could poll with a timer and FOPEN(), maybe?
>
>fopen doesn't care if the file is in use by another process (non-foxpro), does it? doesn't appear to...
AFAIK it does and tries exclusive access. fcreate() sure cares returning -1 and ferror() returns 5 - Access denied.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform