I am looking for a way to run a batch file and find a file within subdirectories. If the file is found just exit but if its not found go ahead and run command. This is what I have so far but it doesnt look through subdirectories.
timeout /t 30
IF EXIST Z:\K\Downloads\*.tmp (
echo Nope
exit
) ELSE (
psexec \\192.168.2.120 -h -u Filebot -p password -i -s "K:/Downloads/Filebot/FilebotMedia.bat"
)