page419.vbs

来自「Apress - Managing Enterprise Systems Wit」· VBS 代码 · 共 17 行

VBS
17
字号
Dim objFolder, objSession, objMessage, objMessages
Set objSession = CreateObject("MAPI.Session")
objSession.Logon " Profile Name " 

Set objFolder = objSession.InBox ' get a reference to the InBox Folder object
' return the Messages collection for the InBox
Set objMessages = objFolder.Messages ' return the Messages collection for the InBox
'get the first message in the folder that is of message type IPM.Note .
Set objMessage = objMessages.GetFirst("IPM.Note")
' loop through all messages in the InBox folder, displaying the subject
Do While Not objMessage Is Nothing
    WScript.Echo objMessage.Subject 'display the subject of the message
    'get the next message 
     Set objMessage = objMessages.GetNext
Loop
objSession.Logoff

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?