code_junkie

A .bat or .wsh script that can search for files

Nov 13th, 2011
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. @echo OFF
  2.  
  3. for /f %%F in ('dir %2%1 /s /b') do (
  4. <nul (set /p msg=%%~nxF )
  5. for /f %%G in ('dir %3%%~nxF /s /b') do (
  6. if exist %%G (
  7. @echo found at %%G
  8. )
  9. )
  10. )
  11.  
  12. FindAll *.dll d:dir1 d:dir2 > dll_report.txt 2>&1
  13.  
  14. dir /S *.dll
  15.  
  16. dir /S C:*.dll
  17.  
  18. dir /S C:*.dll > report.txt
Add Comment
Please, Sign In to add comment