您现在的位置是:网站首页> 编程资料编程资料

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

2023-05-26 301人已围观

简介 win下调用putty执行命令脚本分享_linux 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

-六神源码网