1

如何通过批处理脚本将批处理文件写入 rdp 到服务器中。我通过脚本启动了 mstsc,但在单击窗口弹出窗口中的按钮时出现问题。我所做的是在我的批处理 scipt 中包含一个 vbs 脚本(使用箭头键和输入键)..但它没有锻炼。任何感谢您帮助解决问题...

这是vbs的代号:test2.vbs

Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Sleep 5000
WshShell.AppActivate "Remote Desktop Connection"
WshShell.SendKeys "{LEFT}"
WshShell.SendKeys "{ENTER}"

批处理文件有:

mstsc /v:172.28.52.18 /admin
cscript /nologo test2.vbs
pause
4

0 回答 0