Microsoft KB Archive/328612

= INFO: Microsoft Exchange 2000 Server and Development With Drive M =

Article ID: 328612

Article Last Modified on 10/25/2007

-

APPLIES TO


 * Microsoft Exchange Server 2003 Standard Edition
 * Microsoft Exchange Server 2003 Enterprise Edition
 * Microsoft Exchange Server 2000 Service Pack 1
 * Microsoft Exchange 2000 Server Service Pack 2
 * Microsoft Exchange Server 2000 Service Pack 3

-



This article was previously published under Q328612



SUMMARY
This article discusses the Microsoft support policy for using drive M in custom code, and for using File://./BackOfficeStorage with Windows APIs.



MORE INFORMATION
If you use drive M to change Exchange 2000 Server data, you may cause database corruption. Therefore, Microsoft does not support using drive M in custom code, or using drive M to access data through file APIs.

Using Drive M in a Custom Code

 * Unsupported example (using drive M to open Inbox):

Dim cn as ADODB.Connection Dim strPath as String

' Using the drive M strPath= &quot;M:\Server\MBX\user\Inbox&quot; cn.Provider = &quot;ExOLEDB.DataSource&quot; cn.Open strPath
 * Supported example (using a file:// type URL):

Dim cn as ADODB.Connection Dim strPath as String

' Using a file:// type URL strPath= &quot;file://./backofficestorage/Domain/Server/MBX/user/Inbox&quot; cn.Provider = &quot;ExOLEDB.DataSource&quot; cn.Open strPath

Using File://BackOfficeStorage with a Windows API

 * Unsupported example (using File I/O through Scripting.FileSystemObject to copy a message):

Dim fso As Scripting.FileSystemObject Dim strSourceFile as String Dim strNewFile as String

strSourceFile = &quot;file://./backofficestorage/Domain/Server/MBX/user/Inbox/Test.eml&quot; strNewFile = &quot;file://./backofficestorage/Domain/Server/MBX/user/Inbox/TestCopy.eml&quot; Set fso = CreateObject(&quot;Scripting.FileSystemObject&quot;)

fso.CopyFile strSourceFile, strNewFile
 * Supported example (using Microsoft Collaboration Data Objects (CDO) for Exchange 2000 Server):

Dim iMsg as New CDO.Message Dim strSourceFile as String Dim strNewFile as String

strSourceFile = &quot;file://./backofficestorage/Domain/Server/MBX/user/Inbox/Test.eml&quot; strNewFile = &quot;file://./backofficestorage/Domain/Server/MBX/user/Inbox/TestCopy.eml&quot;

iMsg.DataSource.Open strSourceFile iMsg.DataSource.SaveTo strNewFile

Keywords: kbinfo KB328612

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.