The scenario is I have 30-40 computers which need to transfer files to a single file server. To stop too many computers transferring at one time, I wish to implement this queuing system.
The transfer batch file, which create a file with the computer's name in a temp folder to indicate that a transfer is in progress. Upon completion this file will be deleted.
The queuing batch file that is run before the transfer batch file, which do the following. It will check in the temp directory how many files are in there. Using something like:
dir "C:\New Folder" /b/s |find /v /c "::"
If the number of files is (for example) equals or less than 4, it will call the transfer batch file. If the queue is full, can the queuing batch file be set to rerun after a certain amount of time?
Many thanks for any advice given.