Click here to Skip to main content
11,643,493 members (74,931 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: Outlook AddIn

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 at 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 at 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 at 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
Rate this: bad
Please Sign up or sign in to vote.

Solution 8

Before try any third party Outlook PST Recovery software. Comparing the best PST tools available here

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

  Print Answers RSS
0 480
1 OriginalGriff 475
2 DamithSL 378
3 Sergey Alexandrovich Kryukov 270
4 CPallini 222
0 DamithSL 541
1 OriginalGriff 495
2 Mika Wendelius 469
3 Sergey Alexandrovich Kryukov 330
4 Afzaal Ahmad Zeeshan 324

Advertise | Privacy | Mobile
Web01 | 2.8.150731.1 | Last Updated 31 May 2015
Copyright © CodeProject, 1999-2015
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