@echo off
set "sourcePath=..\..\..\..\driver\src\LIB"
set "destinationPath=..\..\..\..\driver\src"
for /r %%F in (*.uvproj) do (
findstr "2" "%%F" >nul
if not errorlevel 1 (
copy /Y "%sourcePath%\RFL.LIB" "%destinationPath%\RF.LIB"
echo update RF.LIB for large memory model.
)
findstr "0" "%%F" >nul
if not errorlevel 1 (
copy /Y "%sourcePath%\RFS.LIB" "%destinationPath%\RF.LIB"
echo update RF.LIB for small memory model.
)
)