调用putty win下调用putty执行命令脚本分享
人气:0想了解win下调用putty执行命令脚本讲解的相关内容吗,在本文为您仔细讲解调用putty的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:调用putty,下面大家一起来学习吧。
复制代码 代码如下:
@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
加载全部内容