title: timer for closing a program in cmd
body: <p>I want to make a bat file that starts a program(actually another bat) and close the program after a certain amount of time.</p>
  
  <p>my program is like this.</p>
  
  <p>-In 'Program_A.bat'</p>
  
  <pre><code>@echo off
  set /p sec="Enter the amount of sec you want to run : "
  
  start Program_B.bat
  
  timeout /t %sec%
  
  tasakkill /F /IM cmd.exe
  </code></pre>
  
  <p>I found It works well when I put little amount of time. like 10 seconds.
  But When I put 3600 or more, It doesn't kill the Program_B.bat properly.</p>
  
  <p>And I if I put 172800 secs in order to set 48 hours, it doesn't work.</p>
  
  <p>How can I manage these problems? </p>