Setting the auto-archiving folder via script

T

Thomas

Bonjour from France,

I'm trying to write a script (in javascript) to be added to the logon script
of the users of the company I'm working in.

This script will have to set a different auto-archiving folder than the one
set by default.

This parameter is located in the Windows registry in the followings keys :
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles\ "Profile name"
0a0d020000000000c000000000000046\001f032c and 001f0324

This key is a Binary Key.

When I edit the value of that key, I notice that it's composed of the ascii
codes of every character composing the folder name in unicode format. So
'c:\archive\archive.pst' should appear coded as :

'63 00 3A 00 5C 00 61 00 72 00 63 00 68 00 69 00 76 00 65 00 5C 00 61 00 72
00 63 00 68 00 69 00 76 00 65 00 2E 00 70 00 73 00 74 00'

BUT

It appears coded with a zero at the end :

'63 00 3a 00 5c 00 61 00 72 00 63 00 68 00 69 00 76 00 65 00 5c 00 61 00 72
00 63 00 68 00 69 00 76 00 65 00 2e 00 70 00 73 00 74 00 00 00'

My two questions about the auto-archiving parameter in the registry are :

1 : What is the difference between the '001f032c' key and the '001f0324' key ?
2 : What is the meaning of the zero terminating the folder name ?

Thanks a lot.

Thomas.
 
D

Dave Kane [MVP - Outlook]

1. 001f0324 is the value for the archive path, at least on Outlook 2003. I
checked a few systems and didn't find a value 001f032c in any profile,
regardless of the version of Outlook.
2. The final zero (also known as the null terminator) is a marker that
indicates the end of the string in the byte array.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top