当前位置:主页 > 脚本语言 > Shell >

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

时间:2020-12-03 17:25:01 | 栏目:Shell | 点击:

复制代码 代码如下:

@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

您可能感兴趣的文章:

相关文章