@echo off for %%i in (*.proto) do ( protoc --csharp_out=./ %%i rem 以下是注释,可忽略 echo From %%i To %%~ni.cs Successfully! ) pause
即可创建对应Model