I have created a batch file that monitors a specified directory, and I did it with the functions that I want(I am monitoring a zip file). Here's my script:
Code: Select all
:check
if exist "*.zip" (goto process) else (goto end)
:process
my commands here
:end
timeout /nobreak 180>nul
goto check
Now I want my batch file to process the command everytime it detects a zip file in the directory, disregarding the timeout command. Is this possible?
I just want my batch file to process command, without waiting for the timeout to finish, is there any other way?