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 comments to “Windows equivalent to Linux ‘watch’ command”

You can leave a reply or Trackback this post.
  1. I actually created an executable version of the script. It is available at my website:

Write a Reply or Comment

Your email address will not be published.