使用rcedit修改文件信息(exe、dll、sys等)
@echo off
setlocal
set "startDir=driver"
for /r "%startDir%" %%F in (*.dll *.sys) do (
echo 修改信息: %%~fF
rcedit-x64.exe %%~fF --set-version-string LegalCopyright "公司"
rcedit-x64.exe %%~fF --set-version-string ProductName "Name"
rcedit-x64.exe %%~fF --set-version-string LegalTrademarks "Trademarks"
)
endlocal