код на VB:
- Код: Выделить всё
Dim dd As New DropDirectory
Dim mess As CDO.IMessages
Dim mes As CDO.Message
Dim bp As CDO.IBodyPart
Dim bps As CDO.IBodyParts
Dim c As Integer
Set mess = dd.GetMessages("..")
If mess.Count = 0 Then Exit Sub
For a = 1 To mess.Count
Set mes = mess(a)
If Not mes.AutoGenerateTextBody Then
.. и т.д.
на VBScript:
- Код: Выделить всё
Dim dd, mess, bp, bps, mes
Set dd = CreateObject("CDO.DropDirectory")
Set mess = dd.GetMessages("..")
If mess.Count = 0 Then
Main = DTSTaskExecResult_Success
Exit Function
end if
For a = 1 To mess.Count
Set mes = mess.Item(a)
If mes.AutoGenerateTextBody = false Then
.. и т.д.
на последней строке вываливается с ошибкой:
The System cannot find the file specified.
Хотя на простом VB все работает, а вот на VBS при обращении к свойству (AutoGenerateTextBody) вываливается. :(
Причем тоже самое и при попытки доступа к другим св-вам.
Такое чуство что она их просто не видит.
Помогите плиз.