outlook自动化运维之收邮件启动程序维护
打开开发工具,插入新模块1
Public Sub test(Iten As Outlook.MailItem) batPath = "yourpathyour-app" Shell batPath, vbNormalFocus End Sub
然后设置规则。
辅助开启script:
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USERSoftwareMicrosoftOffice.0OutlookSecurity] "EnableUnsafeClientMailRules"=dword:00000001 "InitEncrypt"=dword:00000002 "InitSign"=dword:00000002 "SharedFolderScript"=dword:00000001 "PublicFolderScript"=dword:00000001 "DisallowSMIMEExternalContent"=dword:00000000 "Level"=dword:00000001