{"id":6938,"date":"2020-01-20T20:01:25","date_gmt":"2020-01-20T20:01:25","guid":{"rendered":"http:\/\/www.hexacorn.com\/blog\/?p=6938"},"modified":"2020-01-20T21:01:34","modified_gmt":"2020-01-20T21:01:34","slug":"less-known-command-line-args-of-msohtmed-exe","status":"publish","type":"post","link":"https:\/\/www.hexacorn.com\/blog\/2020\/01\/20\/less-known-command-line-args-of-msohtmed-exe\/","title":{"rendered":"Less known command line args of MSOHTMED.EXE"},"content":{"rendered":"\n<p><strong>Update<\/strong><\/p>\n\n\n\n<p>After I posted it <a href=\"https:\/\/twitter.com\/0gtweet\">@0gtweet<\/a> provided a <a href=\"https:\/\/twitter.com\/0gtweet\/status\/1219359520872456193?s=20\">feedback<\/a> which I used to update the post. Thanks!<\/p>\n\n\n\n<p><strong>Old Post<\/strong><\/p>\n\n\n\n<p>This is just a blurb about a  MSOHTMED cmd line arg I have not seen documented previously. Not sure if it can be used for anything special, but documenting it for the sake of it anyway.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">MSOHTMED.EXE \/oN &lt;file&gt;<\/pre>\n\n\n\n<p>will open &lt;file&gt; with a following program chosen depending on a value of N:<\/p>\n\n\n\n<ul><li>0 &#8211; Word<\/li><li>1 &#8211; Excel<\/li><li>2 &#8211; PowerPoint<\/li><li>3 &#8211; Access<\/li><li>4 &#8211; Sharepoint Designer<\/li><li>5 &#8211; Publisher<\/li><li>6 &#8211; Project<\/li><li>7 &#8211; Visio<\/li><li>8 &#8211; OneNote<\/li><li>9 &#8211; ForeFront  (not confirmed!)<\/li><\/ul>\n\n\n\n<p>If a target app is not installed, the file will be opened by Word.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update After I posted it @0gtweet provided a feedback which I used to update the post. Thanks! Old Post This is just a blurb about a MSOHTMED cmd line arg I have not seen documented previously. Not sure if it &hellip; <a href=\"https:\/\/www.hexacorn.com\/blog\/2020\/01\/20\/less-known-command-line-args-of-msohtmed-exe\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[67],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/6938"}],"collection":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/comments?post=6938"}],"version-history":[{"count":3,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/6938\/revisions"}],"predecessor-version":[{"id":6941,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/posts\/6938\/revisions\/6941"}],"wp:attachment":[{"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/media?parent=6938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/categories?post=6938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hexacorn.com\/blog\/wp-json\/wp\/v2\/tags?post=6938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}