I mentioned in a previous post that I was launching command line utilities from an ASP.NET web app and capturing the output. I wrote a little multithreaded .Process wrapper class to encapsulate this behavior. It's nothing magical, but it is handy for these scenarios:
I am in process of creating a script in vb.net that will backup our sharepoint sites/databases etc… I found your code on the internet and it seems to be very helpful…however i try to dim s as New Shell and Visual Studio underlines the object Shell as if the namespace is not imported or something. Do you think that is the problem? If so, what is the namespaces that i have to import? There are two commands that i will be running in the dos command console and i want to capture the output of the commands to write into a log file. So, it seems like some of the code that you have here would be quite useful and helpful for me to do this. Any help would be greatly appreciated.