tags:

views:

150

answers:

2

Found this function http://www.cpearson.com/excel/ShellAndWait.aspx

But would need also to capture output from the shell output. Any code suggestion ?

A: 

You could always redirect the shell output to a file, then read the output from the file.

Lance Roberts
+2  A: 

You can CreateProcess the application redirecting its StdOut to a pipe, then read that pipe directly; http://pastebin.com/CszKUpNS

dim resp as string 
resp = redirect("cmd","/c dir")
resp = redirect("ipconfig","")
Alex K.
Wow couldn't have created this myself thanks :)