【发布时间】:2016-07-20 01:16:46
【问题描述】:
我有一个批处理文件,它启动 PuTTY 并执行文本文件中列出的命令。我希望能够将参数传递给包含要在远程服务器上运行的命令的文本文件。
这是我目前拥有的 -
start C:\Users\putty.exe -load "server" -l userID -pw Password -m commands.txt
有没有办法将版本号作为参数传递给commands.txt 文件?
【问题讨论】:
-
看看这个 ===> stackoverflow.com/questions/36291324/…
-
试试这个:
start "" C:\Users\putty.exe -load "server" -l userID -pw Password -m commands.txt;start命令可能会将第一个引用的字符串解释为窗口标题,因此""明确给出...
标签: batch-file cmd scripting putty