Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to determine a file is still open?

Status
Not open for further replies.

mkuan

Programmer
Sep 19, 2001
69
CA
I want to write to a file that I know the name and location. I get "Permission denied" error message if the file is opened by some other app while I try to write to it.

My question: Is there a way to determine if a file has an "Open" state using VB?

TIA.
 
It's a trappable error - just trap it and deal appropriately. See faq222-1694 and faq222-4063

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'

for steam enthusiasts
 
As long as it solves the problem.....[smile]

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'

for steam enthusiasts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top