{"id":728,"date":"2011-01-18T23:38:24","date_gmt":"2011-01-18T21:38:24","guid":{"rendered":"http:\/\/www.netexpertise.eu\/en\/?p=728"},"modified":"2021-05-14T17:43:34","modified_gmt":"2021-05-14T15:43:34","slug":"open-any-document-on-windows-from-as400","status":"publish","type":"post","link":"http:\/\/www.netexpertise.eu\/en\/systems\/as400\/open-any-document-on-windows-from-as400.html","title":{"rendered":"Open Any Windows Document from AS400"},"content":{"rendered":"\n<p>You can open any kind of document on Windows from an <a href=\"\/en\/tag\/ibm-i\">IBM i<\/a> 5250 session or a CL program.<br>The type of file can either be an image or a picture (jpeg, tiff, bmp, png), a video (avi, mpeg), a PDF, an office document (word, excel, powerpoint), and even an Internet link (URL).<br>\u00a0<br>AS400 provides the strpccmd command in this purpose:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">strpccmd pccmd('explorer C:\\directory\\file')<\/code><\/pre>\n\n\n\n<p>\u00a0<br>explorer command tell Windows to open a document with the default application that is configured in the control panel. It will act as if you double clicked the file in explorer; Eg: Acrobat reader for PDF files.<br>\u00a0<br>You don&#8217;t absolutely need the &#8216;explorer&#8217; command to open the document but it fixes some issues:<br>&#8211; You do not to get a DOS window displayed<br>&#8211; URLs launch with the default browser, Internet explorer or Firefox (This wouldn&#8217;t work otherwise)<br>&#8211; This lets you open documents with spaces in the filename that tends to be buggy<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can open any kind of document on Windows from an IBM i 5250 session or a CL program.The type of file can either be an image or a picture (jpeg, tiff, bmp, png), a video (avi, mpeg), a PDF, an office document (word, excel, powerpoint), and even an Internet link (URL).\u00a0AS400 provides the strpccmd [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[210],"tags":[396,405,230],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Netexpertise - Open Any Windows Document from AS400<\/title>\n<meta name=\"description\" content=\"How to tell AS400 to its Windows clients to open any kind of document or run local commands from an IBM i program\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.netexpertise.eu\/en\/systems\/as400\/open-any-document-on-windows-from-as400.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Netexpertise - Open Any Windows Document from AS400\" \/>\n<meta property=\"og:description\" content=\"How to tell AS400 to its Windows clients to open any kind of document or run local commands from an IBM i program\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.netexpertise.eu\/en\/systems\/as400\/open-any-document-on-windows-from-as400.html\" \/>\n<meta property=\"og:site_name\" content=\"Netexpertise\" \/>\n<meta property=\"article:published_time\" content=\"2011-01-18T21:38:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-14T15:43:34+00:00\" \/>\n<meta name=\"author\" content=\"dave\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@netexpertise\" \/>\n<meta name=\"twitter:site\" content=\"@netexpertise\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/systems\/as400\/open-any-document-on-windows-from-as400.html\",\"url\":\"http:\/\/www.netexpertise.eu\/en\/systems\/as400\/open-any-document-on-windows-from-as400.html\",\"name\":\"Netexpertise - Open Any Windows Document from AS400\",\"isPartOf\":{\"@id\":\"http:\/\/www.netexpertise.eu\/en\/#website\"},\"datePublished\":\"2011-01-18T21:38:24+00:00\",\"dateModified\":\"2021-05-14T15:43:34+00:00\",\"author\":{\"@id\":\"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa\"},\"description\":\"How to tell AS400 to its Windows clients to open any kind of document or run local commands from an IBM i program\",\"breadcrumb\":{\"@id\":\"http:\/\/www.netexpertise.eu\/en\/systems\/as400\/open-any-document-on-windows-from-as400.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.netexpertise.eu\/en\/systems\/as400\/open-any-document-on-windows-from-as400.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/systems\/as400\/open-any-document-on-windows-from-as400.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/www.netexpertise.eu\/en\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Open Any Windows Document from AS400\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/#website\",\"url\":\"http:\/\/www.netexpertise.eu\/en\/\",\"name\":\"Netexpertise\",\"description\":\"Systems \/ Networks \/ DevOps\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.netexpertise.eu\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa\",\"name\":\"dave\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"caption\":\"dave\"},\"sameAs\":[\"http:\/\/www.netexpertise.eu\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Netexpertise - Open Any Windows Document from AS400","description":"How to tell AS400 to its Windows clients to open any kind of document or run local commands from an IBM i program","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.netexpertise.eu\/en\/systems\/as400\/open-any-document-on-windows-from-as400.html","og_locale":"en_US","og_type":"article","og_title":"Netexpertise - Open Any Windows Document from AS400","og_description":"How to tell AS400 to its Windows clients to open any kind of document or run local commands from an IBM i program","og_url":"http:\/\/www.netexpertise.eu\/en\/systems\/as400\/open-any-document-on-windows-from-as400.html","og_site_name":"Netexpertise","article_published_time":"2011-01-18T21:38:24+00:00","article_modified_time":"2021-05-14T15:43:34+00:00","author":"dave","twitter_card":"summary_large_image","twitter_creator":"@netexpertise","twitter_site":"@netexpertise","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.netexpertise.eu\/en\/systems\/as400\/open-any-document-on-windows-from-as400.html","url":"http:\/\/www.netexpertise.eu\/en\/systems\/as400\/open-any-document-on-windows-from-as400.html","name":"Netexpertise - Open Any Windows Document from AS400","isPartOf":{"@id":"http:\/\/www.netexpertise.eu\/en\/#website"},"datePublished":"2011-01-18T21:38:24+00:00","dateModified":"2021-05-14T15:43:34+00:00","author":{"@id":"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa"},"description":"How to tell AS400 to its Windows clients to open any kind of document or run local commands from an IBM i program","breadcrumb":{"@id":"http:\/\/www.netexpertise.eu\/en\/systems\/as400\/open-any-document-on-windows-from-as400.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.netexpertise.eu\/en\/systems\/as400\/open-any-document-on-windows-from-as400.html"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.netexpertise.eu\/en\/systems\/as400\/open-any-document-on-windows-from-as400.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.netexpertise.eu\/en"},{"@type":"ListItem","position":2,"name":"Open Any Windows Document from AS400"}]},{"@type":"WebSite","@id":"http:\/\/www.netexpertise.eu\/en\/#website","url":"http:\/\/www.netexpertise.eu\/en\/","name":"Netexpertise","description":"Systems \/ Networks \/ DevOps","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.netexpertise.eu\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa","name":"dave","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","caption":"dave"},"sameAs":["http:\/\/www.netexpertise.eu"]}]}},"_links":{"self":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts\/728"}],"collection":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/comments?post=728"}],"version-history":[{"count":0,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts\/728\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/media?parent=728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/categories?post=728"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/tags?post=728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}