首页 > 系统 > Linux > 正文

win下调用putty执行命令脚本分享

2019-10-26 18:39:16
字体:
来源:转载
供稿:网友

代码如下:
@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

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表