2

Is there any way to monitor the real time content of a folder in commandline? What i need is like dir command but updates the content continuously.

Ad Infinitum
  • 131
  • 4

2 Answers2

2

You may find the following command helpful:

watch -n1 ls /path/to/directory

It will list the content of the '/path/to/directory' directory and update the report every one second. You can modify the -n option according to your needs.

RoseHosting
  • 2,386
1

I have found the answer from a different question on this site (with the help of @RoseHosting). The answer belongs to the @harrymc.

I have written something like that;

@ECHO OFF
:loop
  %*
 dir "path/to/myFolder"
  timeout /t 5
goto loop
Ad Infinitum
  • 131
  • 4