title: How to create a batch file countdown timer in min:sec format that uses a variable as the finishing time and uses the current time as the start time?
body: <p>I am trying to create a countdown timer that is in <code>min</code>:<code>sec</code> format which uses a variable taken from a text document and uses it as the finish time and uses the current time (time the <code>.bat</code> was started) as the start time.
  Currently I have this code which works and gets the time from the text document but I can't seem to figure out how to use get it to work.</p>
  
  <p>Code:</p>
  
  <pre><code>@echo off
  
  set CurrentTime=%time:~0,2%.%time:~3,2%
  
  set /p StartTime=&lt;"ResponseTime.txt"
  
  echo.
  
  echo %CurrentTime% %StartTIme%
  
  echo.
  </code></pre>