0

Hello i have this script:

batch.bat:

@Echo off SETLOCAL ENABLEDELAYEDEXPANSION for /f "tokens=*" %%g in (files.txt) do ( SET File=%%g ECHO SET SearchStr=!File! > temp1.bat Type temp1.txt >> temp2.bat Start temp2.bat TIMEOUT /t 1 /nobreak > NUL Del temp2.bat 

)

temp1.bat:

findstr "%SearchStr%" paths.txt >> FilePaths.txt exit 

I have more than 3000 lines in "files.txt" so it takes about 50min which works but would be better if it could go quicker, do you have any ideas that could help?

1 Answer 1

1

the example of your question is not clear. You might try:

findstr /ig:files.txt paths.txt > FilePaths.txt 
Sign up to request clarification or add additional context in comments.

2 Comments

what do you want me to clarify?
redirection is to temp1.bat, but thi file is later never used.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.