I would like to run a batch script with the following syntax:
@echo off
for %%b in ("batchscript1.bat" "bat2" "bat3" "bat4" "etc" "etc") do (
call %%b || exit /b 1
)
How could I implement code into this syntax that looks for a file in a specified directory after each bat is executed.
The reason for this is after each batch file is executed if it fails a log is written to a directory. I would like to see if any files exist so that an email can be sent.