如何将VB脚本的输出写入文件?

我有一个脚本,将输出某些命令的值到terminal?任何人都可以帮助我修改脚本将输出写入文件?

:: Open a Telnet window start telnet.exe 192.168.1.1 :: Run the scrip cscript SendKeys.vbs set OBJECT=WScript.CreateObject("WScript.Shell") WScript.sleep 50 OBJECT.SendKeys "Administrator{ENTER}" WScript.sleep 50 OBJECT.SendKeys "admin{ENTER}" WScript.sleep 50 OBJECT.SendKeys "{ENTER}" For i = 1 to 10 i = i - 1 OBJECT.SendKeys "voice profile list{ENTER}" WScript.sleep 5000 OBJECT.SendKeys "system debug cpu{ENTER}" WScript.sleep 2000 OBJECT.SendKeys "memm stats{ENTER}" WScript.sleep 5000 Next 

Solutions Collecting From Web of "如何将VB脚本的输出写入文件?"