title: 8086 Assembly / MS-DOS, passing file name from the command line
body: <p>Say I have PROGRAM.ASM - I have the following in the data segment:</p>
  
  <pre><code>.data
  
  Filename db 'file.txt', 0
  Fhndl dw ?
  Buffer db ?
  </code></pre>
  
  <p>I want 'file.txt' to be dynamic I guess? Once compiled, PROGRAM.exe needs to be able to accept a file name via the command line:</p>
  
  <pre><code>c:\&gt; PROGRAM anotherfile.txt
  EXECUTION GOES HERE
  </code></pre>
  
  <p>How do I enable this? Thank you in advance.</p>