От: | andik | ||
Дата: | 15.11.04 10:01 | ||
Оценка: |
Const adModeWrite = 2
Const adCreateCollection = &H00002000
Const adCreateStructDoc = &H80000000
Const adCreateNonCollection = &H00000000
Const adOpenIfExists = &H02000000
Const adCreateOverwrite = &H04000000
Const adFailIfNotExists = -1
on error resume next
Dim cn
Dim rec
Dim strConn
Dim strURL
strConn = "http://server/public/"
strURL = "http://server/exadmin/admin/"
strURL = strURL & "domain"
strURL = strURL & "/public folders/folder_name/"
Set cn = CreateObject("ADODB.Connection")
Set rec = CreateObject("ADODB.Record")
cn.Provider = "msdaipp.dso"
cn.Open strConn, user, pass
rec.Open strURL, , adModeReadWrite, adCreateOverwrite
if err.number <> 0 then
msgbox err.number & " - " & err.description
end if
'Use the quotas specified by other properties.
rec.Fields("http://schemas.microsoft.com/mapi/proptag/0x67790003").Value = 0
'Issue warning at (Kb).
rec.Fields("http://schemas.microsoft.com/exchange/storagequotaissuewarninglimit").Value = 200
'Prohibit post at (Kb).
rec.Fields("http://schemas.microsoft.com/mapi/proptag/0x67210003").Value = 1000
'Maximum item size (Kb).
rec.Fields("http://schemas.microsoft.com/mapi/proptag/0x67220003").Value = 500
rec.Fields.Update
rec.Close
cn.Close
Set rec = Nothing
Set cn = Nothing
msgbox "ok"
-2147217895 — Object or data matching the name, range, or selection criteria was not found within the scope of this operation.
MSDAIPP Cannot be Run on the Exchange Server
The Microsoft OLE DB Provider for Internet Publishing (MSDAIPP) is not supported on the Exchange computer. Running MSDAIPP is supported on a computer where Exchange is not installed.