@foxidrive Thank your for the help! It does pass the string "myfile.txt" but I am wanting to pass the %%i. for /f %%i in ('findstr /i /m "draft" DFADV*.*') do echo ..%%1.. will show me on screen what is found (i.e. DFADV999) i want to pass that DFADV999 onto the called bat script...
Okay so I need to search each file for "draft" (non case sensitive) and call the second bat job with the files it finds having draft in it. echo on :: search files for string draft in each file held in this folder and echoing result to make sure it is finding the file. for /f %%i in ('find...