Batch script which would notify concurrently if any file or folder is created/ copied in a certain file location.
The batch file will simulate a listener. When a new file/folder is copied/created in a valid file path it would trigger an action.
Batch script which would notify concurrently if any file or folder is created/ copied in a certain file location.
The batch file will simulate a listener. When a new file/folder is copied/created in a valid file path it would trigger an action.
The idea that I have is that every file/folder that is on there automatically moves to another folder, so each time there is a new "thing" on the original folder an action will be done;
@echo off
:LOOP
cls
dir /b /a "ORIGINALFOLDER\*" | >nul findstr "^" && (move>nul ORIGINALFOLDER\* FOLDER2 & goto ACTION)
goto LOOP
:ACTION
*do something*
*pause/timeout/...*
goto LOOP
I hope this helps...