vbscript ol Folderpath

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vbscript ol Folderpath相关的知识,希望对你有一定的参考价值。

Sub Folderpaths()
    Dim olApp As Outlook.Application
    Dim nmsName As Namespace
    Dim fldFolder As MAPIFolder

    Set olApp = Outlook.Application
    'Create namespace reference
    Set nmsName = olApp.GetNamespace("MAPI")
    'create folder instance
    Set fldFolder = nmsName.GetDefaultFolder(olFolderInbox)
    'call sub program
    Call FolderInfo(fldFolder)

End Sub
Function FolderInfo(fldFolder)
'Displays information about a given folder

    MsgBox fldFolder.Name & "'s current path is " & fldFolder.FolderPath & _
             ". The current address book name is " & fldFolder.AddressBookName & "."

End Function

以上是关于vbscript ol Folderpath的主要内容,如果未能解决你的问题,请参考以下文章

system.folder使用说明

如何等待来自 for 循环的多个异步调用?

创建文件夹

检测并创建文件夹

java怎么创建目录(删除/修改/复制目录及文

Files.delete 和 Files.deleteIfExists 有点奇怪的行为