Click here to Skip to main content
13,148,573 members (65,684 online)
Rate this:
Please Sign up or sign in to vote.
See more:

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..

Posted 24-Sep-12 20:07pm
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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 7

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.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170924.2 | Last Updated 3 Sep 2015
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100