title: Insert new line after a particular line in batch file using batch file
body: <p>I want to insert a line in a batch file after a particular line.<br>
  Input:  </p>
  
  <pre><code>set MTBBankpath=C:\InstallerOutput\QuickBooks-Sync\MTB
  echo To copy QuickBooks-Sync COM components into resultant folder
  copy /Y %ConnectorExecutionPath%\%outqbsyncpath%
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>set MTBBankpath=C:\InstallerOutput\QuickBooks-Sync\MTB
  set IndbBankpath=C:\InstallerOutput\QuickBooks-Sync\indb
  echo To copy QuickBooks-Sync COM components into resultant folder
  copy /Y %ConnectorExecutionPath%\%outqbsyncpath%
  </code></pre>
  
  <p>A New line <code>set IndbBankpath=C:\InstallerOutput\QuickBooks-Sync\indb</code> get inserted after a particular line.</p>