title: Append date to text file in MS DOS 6.22
body: <p>I have been looking around and can't seem to find a solution. I'm a total newbie with Windows command line and scripting in general so I figure this is a great place to ask my question. </p>
  
  <p>I'm basically trying to append a time stamp to my script assignments. We submit the batch scripts as text files and I wanted to put append a time stamp to the text document. I asked my professor and he said it was possible but he wasn't sure how to do it. I can't seem to find the solution that I am looking for online. I know how to do this in the windows command line, but not in on the commandline. Any help would be greatly appreciated!</p>
  
  <p>rem This batch file copies all work to a batch file and then to com1:</p>
  
  <pre><code>@echo off
  cls
  cd \
  cd menu
  copy *.bat mywork.bat
  echo This file was created on (this is where I run in to trouble)
  type mywork.bat &gt; com1:
  cd \
  cls
  All Files have been copied. 
  </code></pre>