Total Pageviews

2018/05/08

[Windows] Execute command every 10-sec in batch file

Problem
I would like to do two commands every 10 seconds via batch file in Windows:
 taskkill /IM test.exe /F
 del /F /Q C:\test\Bak\*.*


How to do it?


How-To
Here has the example:
:loop
 taskkill /IM test.exe /F
 del /F /Q C:\test\Bak\*.*
 timeout /t 10
 goto loop
 




No comments: