Click here to Skip to main content
11,481,265 members (62,820 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Outlook AddIn
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 24-Sep-12 21:07pm
Comments
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
good
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.
  Permalink  
v2
Comments
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

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 294
1 OriginalGriff 220
2 CPallini 135
3 CHill60 130
4 Richard MacCutchan 80
0 Sergey Alexandrovich Kryukov 8,184
1 OriginalGriff 7,701
2 Sascha Lefèvre 3,114
3 Maciej Los 2,491
4 Richard Deeming 2,335


Advertise | Privacy | Mobile
Web02 | 2.8.150520.1 | Last Updated 15 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