INFO: Microsoft Exchange 2000 Server and Development With Drive M (328612)



The information in this article applies to:

  • Microsoft Exchange Server 2003 Standard Edition
  • Microsoft Exchange Server 2003 Enterprise Edition
  • Microsoft Exchange 2000 Server SP1
  • Microsoft Exchange 2000 Server SP2
  • Microsoft Exchange 2000 Server SP3

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= "M:\Server\MBX\user\Inbox"
cn.Provider = "ExOLEDB.DataSource"
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= "file://./backofficestorage/Domain/Server/MBX/user/Inbox"
cn.Provider = "ExOLEDB.DataSource"
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 = "file://./backofficestorage/Domain/Server/MBX/user/Inbox/Test.eml"
strNewFile = "file://./backofficestorage/Domain/Server/MBX/user/Inbox/TestCopy.eml"
    
Set fso = CreateObject("Scripting.FileSystemObject")

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 = "file://./backofficestorage/Domain/Server/MBX/user/Inbox/Test.eml"
strNewFile = "file://./backofficestorage/Domain/Server/MBX/user/Inbox/TestCopy.eml"

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

Modification Type:MinorLast Reviewed:11/10/2005
Keywords:kbinfo KB328612