Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Used() statement
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00031069
Message ID:
00031149
Views:
50
>>>>>Does this statment not work if you specify a drive letter? I keep getting a .f. response when issuing a
>>>>> ~~ ?used("K:ledger") ~~ and I KNOW the file is in use!
>>>>>Thank you
>>>>
>>>>You don't have to put the drive leader. Just put the alias.
>>>
>>>Sorry, I should have been a little more specific. I want to know if another user on the network has this file open.
>>
>>
>>You need something like NetLib to do this. See www.netlib.com
>>
>>Craig
>Well w/out having to purchase an add-on product, is there any other way?
>I merely want to know if a network file is in use.Maybe a handler routine might be the only way?

You can use FOPEN if you know the path:

ferror = fopen('path+file')
if ferror >= 0
=fclose(ferror) && is not open
else
&& file is open
endif
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform