plz需要您的支持才能为以下Java代码提供帮助:
这一步之后“ dataOut.writeBytes(” ssh tt@10.10.10.5 \ n“);” 我必须输入以下步骤:
1- ssh tt@10.10.10.5
2-密码:xxx
3-输入此命令 ipwcl
4- login:tt(再次登录)
5-密码:xxx
非常感谢
我的代码:
Private Sub WriteListViewToFile(FilePath As String)
Dim sb As New StringBuilder
For Each item As ListViewItem In ListView1.Items
sb.AppendLine("@bot.command()")
sb.AppendLine($"async def {item.Text}(ctx):")
sb.AppendLine($" await ctx.send('{item.SubItems(1).Text}')")
Next
File.WriteAllText(FilePath, sb.ToString)
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
If SaveFileDialog1.ShowDialog = DialogResult.OK Then
WriteListViewToFile(SaveFileDialog1.FileName)
End If
End Sub