title: How to print the current time in a Batch-File?
body: <p>I need to print time in a batch file but command prompt tells me that the syntax is incorrect.
  Here is the code i have so far:</p>
  
  <pre><code>@echo %time%
  ping -n 1 -w 1 127.0.0.1 1&gt;nul
  @echo %time%
  pause
  cls
  </code></pre>
  
  <p>I don't know why it isn't working, Please help Me.</p>