Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to see if file can be used exclusive w/o causing err
Message
From
15/08/2000 16:54:24
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00405024
Message ID:
00405215
Views:
20
>Hi,
>
>I need to test a file to see if it can be opened exclusively but, if not, I don't want the error handler to kick in. I'll test to see if the file is opened after the attempt.
>
>Any ideas?

Other than doing a short-term redirection of the error handler and trapping the error, then reseting the handler, no. EXCLUSIVE access is only determinable by test-and-set - try, and if it fails, you can't; if it suceeds, you've got exclusive access...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform