title: is it possible to echo an echo command into a new file?
body: <p>I'm trying to use a batch file to create another batch file... it's a file I have to use quite often with a few variables changed each time. I'm running into an issue because in the batch I'm trying to create, it is also using echo to write to a .txt file.</p>
  
  <p>Here is the command:</p>
  
  <pre><code>echo echo %date% - %time% &gt;&gt; C:\MOVEit\Logs\FileGrabberLog.txt &gt;&gt; C:\filegrabber_%org%.bat
  </code></pre>
  
  <p>I want to enter the whole string <code>echo %date% - %time% &gt;&gt; C:\MOVEit\Logs\FileGrabberLog.txt</code> into C:\filegrabber_%org%.bat.</p>
  
  <p>I can put "" around it but then they appear in the batch I'm trying to create.</p>
  
  <p>Anyone know of a way around this?</p>