调用putty执行指定命令

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

@echo off
echo ===============================
echo Production server
echo ===============================
echo please input "y" to continue......
set /p input=
if "%input%"=="y" (
"putty.exe" -pw serverPassword -m script.txt username@IP
echo reboot server command executed.
) else echo Does not execute any command
pause