@echo off
rem for /D %%i in (".\*") do (cd %%i &&for %%j in (".\*.proto") do protoc --go_out=plugins=grpc:. %%j && cd ..)
for /f %%i in ('dir . /ad /b ^| findstr /v /x ".idea" ') do (cd %%i &&for %%j in (".\*.proto") do protoc --go_out=plugins=grpc:. %%j && cd ..)
ssh -i C:\Users\iaun\id_rsa_monitor root@192.168.226.131 "rm -rf /root/go/src/iaun.cn/linux/services/*"
ssh -i C:\Users\iaun\id_rsa_monitor root@192.168.226.132 "rm -rf /root/go/src/iaun.cn/linux/services/*"
ssh -i C:\Users\iaun\id_rsa_monitor root@192.168.226.133 "rm -rf /root/go/src/iaun.cn/linux/services/*"
scp -r -i C:\Users\iaun\id_rsa_monitor ./* root@192.168.226.131:/root/go/src/iaun.cn/linux/services
scp -r -i C:\Users\iaun\id_rsa_monitor ./* root@192.168.226.132:/root/go/src/iaun.cn/linux/services
scp -r -i C:\Users\iaun\id_rsa_monitor ./* root@192.168.226.133:/root/go/src/iaun.cn/linux/services
timeout /t 4 /nobreak > nul
exit