有些情况可以用重定向,类似ftp -s那样,比如
x.exe <x.txt
有些情况只能用vbs模拟键盘输入,比如telnet
Dim wshshell
set wshshell=CreateObject("wscript.shell")
wscript.sleep 3000
WshShell.Run "telnet 192.168.1.100"
wscript.sleep 5000
wshshell.sendkeys "admin"
wshshell.sendkeys "{ENTER}"
wscript.sleep 1000
wshshell.sendkeys "admin123"
wshshell.sendkeys "{ENTER}"
温馨提示:内容为网友见解,仅供参考