filter.vbs
来自「Apress - Managing Enterprise Systems Wit」· VBS 代码 · 共 24 行
VBS
24 行
'filter.vbs
Set objSession = CreateObject("MAPI.Session")
objSession.Logon "SCB"
Set objMsgColl = objSession.InBox.Messages
Set objFilter = objMsgColl.Filter
'set the filter properties to filter all messages that are unread, of
'type IPM.Note and were received over 6 months a go
objFilter.Type = "IPM.Note"
objFilter.Unread = True
objFilter.TimeLast = DateAdd("d", -180, Date)
' loop through the Messages collection and display the subject
' for any messages that meet the filter criteria
Set objMessage = objMsgColl.GetFirst()
Do While Not objMessage Is Nothing
'display the subject for the current message..
WScript.Echo objMessage.Subject
'get the next message
Set objMessage = objMsgColl.GetNext()
Loop
objSession.Logoff
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?