2020. 1. 24. 02:01ㆍ카테고리 없음
Apr 28, 2017 - This allowed me to quickly go to or open Outlook in a specific folder. When I try do this. Outlook 2010 and later no longer provide support for xnk-files at all. Creating a shortcut with the /select command line switch.
Command Line Windows
Microsoft Office Outlook has a number of command-line switches that allow you to perform a variety of actions. One very useful example of this is the /recycle switch, which was introduced as a default in Outlook 2010. In previous versions, if a user already had an instance of Outlook open and clicked the Outlook icon again, it would open another instance. With the /recycle option, it checks for a current instance of Outlook and if it exists, brings it to the front instead of opening another. Below you will find a number of other useful switches that can be used for efficiency or troubleshooting.
Available switches. SwitchDescription/aCreates an item with the specified file as an attachment.Example:. 'c:program filesmicrosoft officeoffice14outlook.exe' /a 'c:my documentslabels.doc'If no item type is specified, IPM.Note is assumed. Cannot be used with message classes that are not based on Outlook./altvba otmfilenameOpens the VBA program specified in otmfilename, instead of%appdata%microsoftoutlookvbaproject.otm.Note This command line switch is only available if the following Windows registry DWORD value is set to 1.
From a batch script, I want to open Outlook, keep it open and compose a message. I've tried the following methods:start ' 'C:Program Files (x86)Microsoft OfficeOffice14OUTLOOK.EXE' /c ipm.note /m 'x@abc.com;y@abc.com&cc=z@abc.com&subject=123&body=something.' Start ' 'C:Program Files (x86)Microsoft OfficeOffice14OUTLOOK.EXE'start mailto:'x@abc.com;y@abc.com&cc=z@abc.com&subject=123&body=something.' The first method opens the new email window but Outlook does not open.The second method opens Outlook but does not open the new message window.What is either of the scripts missing?Running Windows 7, MS Office 2010.Help is appreciated.