Modifying the .Nk2 file
-
Thursday, February 21, 2008 4:35 PM
Hi,
I need to modify the .Nk2 file programatically in C#. I can view it's contents by using different tools but cannot modify it.
I think I need to decode it, store it in a readeable text file, which I can easily modify and then convert it back to .Nk2 file.
Is there any way in which I can programatically read and modify the .Nk2 file (without using any tool)?
Thanks,
Reshmi
- Moved by Sue MosherModerator Tuesday, August 03, 2010 12:00 PM not related to VSTO (From:Visual Studio Tools for Office)
All Replies
-
Saturday, February 23, 2008 9:19 PMModerator
The file format for the .nk2 file is undocumented, and Microsoft provides no APIs to access it. Therefore, if you want to modify that file, you'll need to do your own research to decipher the format, etc. -- essentially duplicating the work that the available third-party tools have done. -
Friday, April 04, 2008 9:20 PM
Thanks.
Reshmi
-
Monday, July 27, 2009 1:07 AMSue is correct.. I suggest you go to this link and find what you need.
http://www.nirsoft.net/utils/outlook_nk2_autocomplete.html
By the way Nirsoft.net is a very safe site, full of Wizz-Wow utilities.
Hank Freeman
FHankFreeman -
Monday, July 27, 2009 1:08 AM
Please see comment I made to the original post...
Hank Freeman
FHankFreeman -
Thursday, March 04, 2010 9:08 AMHi Reshmi
Now I also need to modify the Outlook .Nk2 file using C#. Have you got any hint regarding the same.
If so please help me.
Thanks
Unni -
Tuesday, August 03, 2010 8:26 AM
Microsoft has recently documented .nk2 file format, you can find here
http://msdn.microsoft.com/en-us/library/ff625291.aspx
NK2 Sample:
http://stephengriffin.members.winisp.net/nk2/NK2WithBinaryExample.pdf
- Proposed As Answer by Padikkasu Muruganantham Tuesday, August 03, 2010 8:26 AM
- Marked As Answer by Sue MosherModerator Tuesday, August 03, 2010 12:00 PM

