4
我有下面的VBScript:如何使用VBScript Exec時顯示DOS輸出
Set Shell = WScript.CreateObject("WScript.Shell")
commandLine = puttyPath & "\plink.exe -v" & " -ssh" [plus additional commands here]
Set oExec = Shell.Exec(commandLine)
這將導致一個DOS窗口出現,但不顯示從plink.exe輸出。有沒有辦法讓DOS窗口顯示這個輸出?
看起來除了ReadAll好阻止,應該是的ReadLine我想 – 2011-02-03 19:22:17