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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Having difficulty deleting PST file while outlook has handle

Status
Not open for further replies.

lsman11

Programmer
Dec 22, 2004
18
US
I am trying to delete a PST file via File.Delete("..."), but it appears that outlook may have exclusive access to the file at the moment... even if i removed the PST from my outlook explorer (closed the PST)...

is there a way for me to force outlook, or at least the file itself, to be deleted? is there some sort of release function ?

thanks, lsm
 
You have to close Outlook to release the hook.

I'm Certifiable, not cert-ified.
It just means my answers are from experience, not a book.
The poster formerly known as lander215
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top