Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell if file is open exclusively ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00503929
Message ID:
00549918
Views:
25
>I am putting together a maintenance application and I want to grab
> dbc
> dct
> dcx
> dbf
> cdx
> fpt
> ini
> prg
>exclusively when the app starts so I can do stuff to the files (or just quit if everything can't be grabbed). It looks like VFP's locking is ignored by programs like Excel, but Excel is fine with opening a DBF and preventing VFP from USEing it. What would you recommend for doing an OS-exclusive file lock for everything?
>
>
>


I'm not really sure. There's probably an API call you can make, but I'm not the guy to talk to about Windows API. Ed? George? you there?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform