updateLIB.bat 539 B

123456789101112131415161718
  1. @echo off
  2. set "sourcePath=..\..\..\..\driver\src\LIB"
  3. set "destinationPath=..\..\..\..\driver\src"
  4. for /r %%F in (*.uvproj) do (
  5. findstr "<MemoryModel>2</MemoryModel>" "%%F" >nul
  6. if not errorlevel 1 (
  7. copy /Y "%sourcePath%\RFL.LIB" "%destinationPath%\RF.LIB"
  8. echo update RF.LIB for large memory model.
  9. )
  10. findstr "<MemoryModel>0</MemoryModel>" "%%F" >nul
  11. if not errorlevel 1 (
  12. copy /Y "%sourcePath%\RFS.LIB" "%destinationPath%\RF.LIB"
  13. echo update RF.LIB for small memory model.
  14. )
  15. )