Windows equivalent to Linux ‘watch’ command

Very simply create a batchfile name it watch.batwith notepad with the following contents:

 

@ECHO OFF
:loop
  cls
  %*
  timeout /t 5
goto loop

Run as such :

watch dir *.mpg

2 Replies to “Windows equivalent to Linux ‘watch’ command”

Leave a Reply

Your email address will not be published. Required fields are marked *