title: How to run .exe/.bat file with INPUT/OUTPUT in Progress 4GL
body: <p>I try to create a PDF-File via wkhtmltopdf.exe in Progress4GL. I have written a procedure which downloads a html file as an INPUT.</p>
  <pre class="lang-progress4gl prettyprint-override"><code>procedure downloadhtml:
  
      define input parameter i-benutzer as character  no-undo.
  
      
      define variable zw-path         as character no-undo.
      define variable h-uhrzeit       as character no-undo.
      define variable h-text          as character no-undo.    
      
  
      h-uhrzeit = string(time, &quot;HH:MM:SS&quot;).
      h-uhrzeit = replace(h-uhrzeit, &quot;:&quot;, &quot;.&quot;). 
     
      h-text = '&lt;div style=&quot;color:red;&quot;&gt;I am a html file&lt;/div&gt;'.
     
      
      find database.table
           where database.table.man     = &quot;xxx&quot;
           and   database.table.krg     = &quot;X-2540.w&quot;
           and   database.table.user    = &quot;_PPS&quot;
           and   database.table.opzt    = &quot;_PPN&quot;
           no-lock no-error.
      if available database.table then do:
         zw-path = table.field.
      end.
  
   
      OUTPUT TO VALUE(zw-path + &quot;Name_&quot; + string(today,&quot;99.99.9999&quot;) + &quot;_&quot; + h-uhrzeit + &quot;_&quot; + i-benutzer + &quot;.html&quot;).
    
      
          put unformatted h-text skip.
     
      
      output close.
  
  end procedure.
  </code></pre>
  <p>It downloads the html file to this directory :</p>
  <pre><code>K:\K11\WEB\PDF\Name_01.03.2021_09.17.25_xx.html
  </code></pre>
  <p>wkthmltopdf.exe has 1 INPUT and 1 Output Directory. Structure looks like this in CMD Console --&gt; :: [.exe] [INPUT DIRECTORY] [OUTPUT DIRECTORY]</p>
  <p>if I run manually cmd console with these commands it works perfectly</p>
  <pre class="lang-batch-file prettyprint-override"><code>cd C:\Program Files (x86)\wkhtmltopdf\
  wkhtmltopdf.exe K:\K11\WEB\PDF\Name_01.03.2021_09.17.25_xx.html K:\K11\WEB\PDF\Name_01.03.2021_09.17.25_xx.pdf
  </code></pre>
  <p>My Question is: How can I run .exe File with dynamic(Name depends on Date&amp;Time) INPUT OUTPUT Variables in Progress ?</p>
  <p>I found a command which runs .exe file in progress4GL</p>
  <pre><code>os-command(wkhtmltopdf.exe) 
  </code></pre>
  <p>but how can I put input and output variables/directories in .exe file in progress4gl?</p>