[英]Powershell script launch Putty
我想創建一個 powershell 腳本,允許我啟動帶有參數的 PuTTy,以串行通知與“讀取主機”連接 這是我現在的代碼:
#For Serial connection
$ConnectionType = Read-Host "Enter your Connection type"
$SerialLine = Read-Host "Enter Your SerialLine like COM1"
$Speed = Read-Host "Enter your Bauds speed"
putty.exe $ConnectionType $SerialLine $Speed
就在我的腳本啟動期間,我可以輸入我的信息,但是 putty 的錯誤 window 標記我“意外參數“9600””
我不知道我的代碼哪里搞砸了,或者只是 putty 不喜歡使用 powershell。非常感謝你的幫助
非常感謝 !
Powershell 內置了一個 SSH 模塊,用於創建遠程連接。 見PowerShell 文檔 SSH
正如您在Putty 命令行文檔中看到的那樣,Putty 需要不同的參數才能從命令行啟動 putty.exe。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.