Created
November 27, 2012 11:28
-
-
Save jujhars13/4153770 to your computer and use it in GitHub Desktop.
watch.bat - watch command for windows - drop this file on your path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem Watch.bat - trying to emulate linux watch command on windows | |
rem inspired by http://stackoverflow.com/questions/6765554/is-there-a-windows-command-line-equivalent-to-linux-watch-command amd http://superuser.com/questions/191063/what-is-the-windows-analog-of-the-linux-watch-command | |
@echo off | |
title Watch %1 %2 %3 %4 %5 | |
:loop | |
cls | |
%1 %2 %3 %4 %5 | |
echo. | |
timeout /t 2 | |
goto loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
watch.bat
Just drop this script as watch.bat somewhere on your path
use like this:
watch.bat dir
Which will display the current directory contents every 2 seconds
thanks