Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
301 B

  1. echo off
  2. set oldsrc=%1
  3. set newsrc=%2
  4. set binsrc=%3
  5. for /F %%F in (%newsrc%) do call :comp1 %%F %%~nxF
  6. goto :EOF
  7. :comp1
  8. set testline=%1
  9. findstr /I /L "%testline%" %oldsrc% 1>NUL 2>NUL
  10. if %ERRORLEVEL% EQU 0 goto :EOF
  11. if NOT exist "%binsrc%\%2" goto :EOF
  12. echo %testline%
  13. goto :EOF