Purpose: | Run command(s) repeatedly, displaying the output and highlighting the difference(s) from the last run. |
Format: | WATCH [/A /B /C /D /F /Hn /In /Mn /Nf /Nh /R"regex" /Tn /U /V /X] "command ..." |
Usage:
WATCH allows you to see how program output changes over time. WATCH will highlight the changed output text. To end the WATCH, press Esc or ^C.
Command can be an internal command, alias, batch file, or an external application.
Note that you need to double your variable %'s if you want the variables to be expanded by the specified commands instead of by WATCH.
Example:
watch /c /v "(echo time=%%_time & echo date=%%_date)"
Options:
/A | Highlights all changes between the current run and the first one,instead of the difference between the current and previous runs. |