{"id":2072,"date":"2014-11-19T21:04:44","date_gmt":"2014-11-19T21:04:44","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=2072"},"modified":"2016-12-01T06:23:06","modified_gmt":"2016-12-01T06:23:06","slug":"checks-if-file-exists-on-hp3000","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/checks-if-file-exists-on-hp3000\/","title":{"rendered":"Checks if file exists on HP3000"},"content":{"rendered":"<p>;<br \/>\n; Checks if file exists on HP e3000.<br \/>\n;<br \/>\nLET sVar1 = &#8220;UNKNOWN&#8221;<br \/>\nGOSUB FileTest<br \/>\nIF ( sRETURN = 1 )<br \/>\nDISPLAY &#8220;File Found^M^J&#8221;<br \/>\nELSE<br \/>\nDISPLAY &#8220;File NOT Found^M^J&#8221;<br \/>\nENDIF<br \/>\n;<br \/>\nLET sVar1 = &#8220;NMCONFIG.PUB.SYS&#8221;<br \/>\nGOSUB FileTest<br \/>\nIF ( sRETURN = 1 )<br \/>\nDISPLAY &#8220;File Found^M^J&#8221;<br \/>\nELSE<br \/>\nDISPLAY &#8220;File NOT Found^M^J&#8221;<br \/>\nENDIF<br \/>\nDISPLAY &#8220;^M^J&#8221;<br \/>\n;<br \/>\nSTOP<br \/>\n;<br \/>\n; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<br \/>\n;<br \/>\nLABEL FileTest<br \/>\nLET sTmp1=&#8221;&#8221;<br \/>\nLET sTmp2=&#8221;&#8221;<br \/>\nLET sRETURN=0<br \/>\nSEND &#8220;LISTF &#8221; &amp; sVar1<br \/>\nREADHOST 00:00:03 sTmp1 UNTIL &#8220;^Q&#8221; TERMINATOR sTmp2<br \/>\nIF ( LENGTH(sTmp2) = 0 )<br \/>\nRETURN<br \/>\nENDIF<br \/>\nIF ( FIND ( &#8220;CIERR&#8221;, sTmp1 ) = 0 )<br \/>\nLET sRETURN=1<br \/>\nENDIF<br \/>\nRETURN<br \/>\nEND<\/p>\n","protected":false},"excerpt":{"rendered":"<p>; ; Checks if file exists on HP e3000. ; LET sVar1 = &#8220;UNKNOWN&#8221; GOSUB FileTest IF ( sRETURN = 1 ) DISPLAY &#8220;File Found^M^J&#8221; ELSE DISPLAY &#8220;File NOT Found^M^J&#8221; ENDIF ; LET sVar1 = &#8220;NMCONFIG.PUB.SYS&#8221; GOSUB FileTest IF ( sRETURN = 1 ) DISPLAY &#8220;File Found^M^J&#8221; ELSE DISPLAY &#8220;File NOT Found^M^J&#8221; ENDIF DISPLAY &#8220;^M^J&#8221; [&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\/2072"}],"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=2072"}],"version-history":[{"count":1,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/2072\/revisions"}],"predecessor-version":[{"id":2073,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/2072\/revisions\/2073"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=2072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=2072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=2072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}