I have a small loop script like this, it basically just monitors a directory if there is a file called 000.txt created, it will call up another batch file to run then delete the 000.txt file and keep going like this.....
@ECHO OFF
REM Check if 000.txt exists
:LOOP
IF NOT EXIST D:\data\000.txt GOTO SKIP
REM mklink if 000.txt exists...
call C:\ntfs3\mklink.bat
GOTO LOOP
:SKIP
REM Crafty 1 minute delay...
PING 1.1.1.1 -n 4 -w 600 >NUL
GOTO LOOP
So my question:
Is this a good idea to running a endless loop on server like forever to monitor a folder?