title: How to print the command line itself in log file for log tracking purpose?
body: <p>I have a java code that is called through .bat file. The batch works fine. Is there a way I could print this command line which I'm executing to the stdout (log) file ? </p>
  
  <p>For example, my command is </p>
  
  <pre><code>call dpp.bat -r %BASE_URL% views -af xyz.csv &gt;&gt; creation.log 2&gt;&amp;1
  </code></pre>
  
  <p>In my bat file I have multiple commands of various types of such kind. While executing this single batch file, everything gets executed one by one and all logs are written to that single file creation.log. And user gets lost seeing the log, which command line executed what !</p>
  
  <p>Is there a simple way like adding some line that would print the command line too to the log file ?</p>