{"id":2021,"date":"2014-11-19T00:20:28","date_gmt":"2014-11-19T00:20:28","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=2021"},"modified":"2017-01-22T06:18:14","modified_gmt":"2017-01-22T06:18:14","slug":"mpeix-command-files","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/mpeix-command-files\/","title":{"rendered":"MPEiX Command Files"},"content":{"rendered":"<h2>MPEiX Command files<\/h2>\n<ul>\n<li>The Wildcards must be the standard HP e3000 MPEiX characters.<\/li>\n<li>The PC path names must be fully qualified.<\/li>\n<li>The type of transfer is ASCII or Binary and will be the same for all selected files.<\/li>\n<\/ul>\n<h2>Wildcard Download Command File<\/h2>\n<p class=\"basic\"><span style=\"font-family: Arial;\">Below is an MPE\/iX command file that allows for wild card file transfers from the HP e3000 to the PC. This can also be called from a logon UDC to allow file transfers without giving access to a colon (MPE) prompt. <\/span><\/p>\n<pre>option nolist\r\nerrclear\r\nsetvar type1 \" \"\r\nsetvar curup chr(27) + \"A\"\r\nsetvar cleardis chr(27) + \"J\"\r\nsetvar dispoff chr(27) + \"&amp;w13F\"\r\nsetvar dispon chr(27) + \"&amp;w12F\"\r\necho\u00a0 Enter the files to be down loaded to the PC\r\necho\u00a0 MPEix listf symbols (@,?,#) are supported.\r\ninput hpfilename; prompt=\"HP files: \"\r\necho\r\necho\r\necho Enter the path for the directory on the P.C. to receive files\r\ninput pcdir; prompt=\"the default path is c:\\ :\"\r\necho Enter the type of file transfer (ASCII, BINARY)\r\ninput type1;prompt=\"the default is ASCII: \"\r\necho\r\necho\r\nif type1 = \" \" then\r\nsetvar type1 \"ASCII\"\r\nendif\r\nif ups(\"!type1\") = \"ASCII\" or &amp;\r\nups(\"!type1\") = \"BINARY\" THEN\r\nsetvar continue\u00a0 \"Y\"\r\nsetvar TYPE\u00a0 chr(27) + \"&amp;oF\" + \"!type1\"\r\nelse\r\nsetvar continue \"N\"\r\necho *************************************************************\r\necho\r\necho The type of transfer !type is incorrect command file aborted\r\necho\r\necho *************************************************************\r\nendif\r\nlistf !hpfilename,6 &gt; mpcfile\r\nif !hpcierr &lt;&gt; 0\u00a0 then\r\necho **********************************************************\r\necho\r\necho ZERO file found using argument !hpfilename\r\necho command file will be terminated.\r\necho\r\necho **********************************************************\r\nendif\r\nif \"!continue\" = \"Y\" and !hpcierr = 0 then\r\nsetvar i,0\r\nsetvar eof,finfo(\"mpcfile\",\"eof\")\r\nif pcdir = \"\" then\r\nsetvar pcdir \"c:\\\"\r\nendif\r\nif rht(\"!pcdir\",1) = \"\\\" then\r\nsetvar pcdir \"!pcdir\"\r\nelse\r\nsetvar pcdir \"!pcdir\" + \"\\\"\r\nendif\r\necho ************************************************************\r\necho\r\necho !eof file(s) found using argument !hpfilename\r\necho the file will be sent to directory !pcdir\r\necho in !type1 format\r\ninput answer;prompt=\"OK to continue (Y\/N):\"\r\nif ups(\"!answer\") = \"Y\" then\r\nsetvar receive chr(27) + \"&amp;oC \" + \"download \"\r\necho !dispoff\r\nwhile (i &lt; eof)\r\nsetvar i,!i + 1\r\nprint mpcfile;start=!i;end=!i &gt; tmp2\r\ninput file1 &lt; tmp2\r\nsetvar HOSTF chr(27) + \"&amp;oF \"\u00a0 + \"HOSTF \" + rtrim(\"!file1\")\r\nsetvar x pos(\".\",\"!file1\")\r\nsetvar x,!x - 1\r\nsetvar LOCF chr(27) + \"&amp;oF \" + \"LOCF !pcdir\" + lft(\"!file1\",x)\r\necho !TYPE\r\necho !LOCF\r\necho !HOSTF\r\necho !receive\r\ninput hprog\r\n!hprog\r\ninput cc\r\necho !curup!curup!curup!curup!curup!curup!curup\r\nendwhile\r\necho !cleardis\r\necho !curup!curup\r\necho !dispon\r\necho !curup!curup\r\nendif\r\nendif\r\npause 1<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>MPEiX Command files The Wildcards must be the standard HP e3000 MPEiX characters. The PC path names must be fully qualified. The type of transfer is ASCII or Binary and will be the same for all selected files. Wildcard Download Command File Below is an MPE\/iX command file that allows for wild card file transfers [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55,62],"tags":[],"_links":{"self":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/2021"}],"collection":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=2021"}],"version-history":[{"count":1,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/2021\/revisions"}],"predecessor-version":[{"id":2022,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/2021\/revisions\/2022"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=2021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=2021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=2021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}