Can I have a macro in Visual Studio 2005 call a DOS command and redirect the output to a file?

Posted by Mark on Stack Overflow See other posts from Stack Overflow or by Mark
Published on 2010-04-02T13:37:19Z Indexed on 2010/04/02 13:43 UTC
Read the original article Hit count: 370

Filed under:
|
|
|

I'd like to have a macro in Visual Studio 2005 that calls a DOS command and redirects the output (stdout and stderr) to a file. Just calling the command and ">" redirecting it will not capture stderr, so there are two parts to this:

  1. calling a DOS command
  2. capturing both stderr and stdout to a file during that call

I'd then like to open this file in Visual Studio after the command completes.

I'm new to Visual Studio 2005 macro writing, and VB/VBA, so that's the kind of help that I'm looking for.

Thanks, Mark

© Stack Overflow or respective owner

Related posts about visual-studio-2005

Related posts about vba