VBA から EXE の標準出力を読む
StdOut.ReadLine
を使う。
Function test() Set objShell = CreateObject("WScript.Shell") Set objExec = objShell.Exec("test.exe") r = objExec.StdOut.ReadLine MsgBox (r) End Function
StdOut.ReadLine
を使う。
Function test() Set objShell = CreateObject("WScript.Shell") Set objExec = objShell.Exec("test.exe") r = objExec.StdOut.ReadLine MsgBox (r) End Function