{"id":2060,"date":"2014-11-19T20:30:49","date_gmt":"2014-11-19T20:30:49","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=2060"},"modified":"2014-11-19T20:30:49","modified_gmt":"2014-11-19T20:30:49","slug":"wildcard-file-download","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/wildcard-file-download\/","title":{"rendered":"Wildcard File Download"},"content":{"rendered":"<p>Change the transfer parameters as appropriate to BINARY, ASCII, RECSIZE, SAVEINF.<\/p>\n<pre>;\r\n; Destination directory \r\nLET Var1=\"C:\\temp\\\"\r\n;\r\n; File selection\r\nLET Var2=\"F@\"\r\n;\r\n; Maximum number of files to be sent\r\nLET Var3=40\r\n;\r\nSEND \"PURGE FILELIST,TEMP\"\r\nONTIMER TimeOut\r\nTIMER 15\r\nWAITC 17\r\nSEND \"LISTF \" &amp; Var2 &amp; \",6 &gt; FILELIST\"\r\nONTIMER TimeOut\r\nTIMER 15\r\nWAITC 17\r\nLOCF tempfile\r\nHOSTF FILELIST,TEMP\r\nASCII\r\nDOWNLOAD\r\nONTIMER TimeOut\r\nTIMER 15\r\nWAITC 17\r\nCLOSE 1\r\nOPEN tempfile INPUT AS 1 ASCII\r\nLET Var4=0\r\n:L1\r\nREAD 1 Var5\r\nLET Var6 = LENGTH(Var5)-2\r\nLET Var7 = MID(Var5,1,Var6)\r\nDISPLAY Var7\r\nDISPLAY \"^M^J\"\r\nIF ((LENGTH(Var7)&gt;2)AND(Var4&lt;Var3)\r\n  LET Var8=UPPER(MID(Var7,1,FIND(\".\",Var7)-1))\r\n  LOCF Var1&amp;Var8\r\n  HOSTF Var7\r\n  ASCII\r\n  DOWNLOAD\r\n  LET Var4=Var4+1\r\n  GOTO L1\r\nENDIF\r\nCLOSE 1\r\nSTOP\r\n:TimeOut\r\nCLOSE 1\r\nTELL \"Host Time-Out occurred...\"\r\nEND<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Change the transfer parameters as appropriate to BINARY, ASCII, RECSIZE, SAVEINF. ; ; Destination directory LET Var1=&#8221;C:\\temp\\&#8221; ; ; File selection LET Var2=&#8221;F@&#8221; ; ; Maximum number of files to be sent LET Var3=40 ; SEND &#8220;PURGE FILELIST,TEMP&#8221; ONTIMER TimeOut TIMER 15 WAITC 17 SEND &#8220;LISTF &#8221; &amp; Var2 &amp; &#8220;,6 &gt; FILELIST&#8221; ONTIMER TimeOut [&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\/2060"}],"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=2060"}],"version-history":[{"count":1,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/2060\/revisions"}],"predecessor-version":[{"id":2061,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/2060\/revisions\/2061"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=2060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=2060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=2060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}