Command Window

  • Thread starter Thread starter Helen Trim
  • Start date Start date
H

Helen Trim

I need to use the command window to run a program.
Following the Help examples, I have the following code:

Dim DTE As EnvDTE.DTE
DTE = Microsoft.VisualBasic.Interaction.CreateObject
("VisualStudio.DTE.7.1")
Dim win As Window = DTE.Windows.Item
(EnvDTE.Constants.vsWindowKindCommandWindow)
Dim CW As CommandWindow = win.Object

CW.SendInput("C:\Showgrps.exe > C:\plgrps.txt", True)

This runs without throwing an exception, but it does
nothing. What am I doing wrong?

Thanks
Helen
 
Helen,

Is this from a macro?

Ken
-----------------
I need to use the command window to run a program.
Following the Help examples, I have the following code:

Dim DTE As EnvDTE.DTE
DTE = Microsoft.VisualBasic.Interaction.CreateObject
("VisualStudio.DTE.7.1")
Dim win As Window = DTE.Windows.Item
(EnvDTE.Constants.vsWindowKindCommandWindow)
Dim CW As CommandWindow = win.Object

CW.SendInput("C:\Showgrps.exe > C:\plgrps.txt", True)

This runs without throwing an exception, but it does
nothing. What am I doing wrong?

Thanks
Helen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top