Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi..

I am creating an outlook addin for Outlook 2007.In that i need to copy the outlook.pst file and save to another location.This should happen while the outlook is running.But i'm not able to do it.

I'm getting the following error "The process has been locked by another process" Please help me.Is there any option to do this?

Thanks in advance..

binta
Posted
Comments
Philippe Mori 15-May-15 8:07am    
As far as I know, you have to close Outlook for that. Many backup programs need Outlook to be closed to properly copy the file.

Opening the file for read with the filestream FileShare set to read|write and delete, to allow full access to concurrent accesses, you should be able to read the file.
If outlook updates file while you're copying it the copy will be corrupted.
 
Share this answer
 
v2
Comments
Richard Deeming 15-May-15 8:38am    
This question is from 2012. It only appeared in the list because of the spam answers, which have since been deleted.
Frankie-C 15-May-15 8:55am    
Ya, thanks
Considering that there is no valid answers why has not been removed at all? Bah!
Thank you again

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900