Click here to Skip to main content
16,004,991 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Creating a date Pin
sybux200010-Apr-03 22:15
sybux200010-Apr-03 22:15 
GeneralReference spreadsheet needs to be open Pin
Nicole Sohenick10-Apr-03 6:57
sussNicole Sohenick10-Apr-03 6:57 
GeneralOLE from VB6 in C# Pin
Trevor Godwin10-Apr-03 1:03
sussTrevor Godwin10-Apr-03 1:03 
GeneralProblem to use ListSubItem Object in ListView Pin
CHEICKNA TRAORE9-Apr-03 13:59
CHEICKNA TRAORE9-Apr-03 13:59 
GeneralRe: Problem to use ListSubItem Object in ListView Pin
David Wengier10-Apr-03 16:49
David Wengier10-Apr-03 16:49 
GeneralBurning CDs programatically Pin
mabotta9-Apr-03 6:31
mabotta9-Apr-03 6:31 
GeneralRe: Burning CDs programatically Pin
Joao Vaz9-Apr-03 6:41
Joao Vaz9-Apr-03 6:41 
GeneralCalling an .exe inside VB.NET Pin
baby.chai9-Apr-03 5:26
baby.chai9-Apr-03 5:26 
Hi!
I have a program that only runs the way I want it to from cmd line. Such as:

> myprogram "c:\mydirectory\file.dll"

Now, I want to automate running this program against a lot of dll's so the argument in the cmd line is bound to change. And the other thing is, I need to parse the output of the program dumped to standard out. So essentially, what would be great is if i can call something like:

> myprogram "c:\mydirectory\file.dll" > output.txt


I have the following code so far
---------------------------------------------------
Dim p As New Process()
Dim p_info As New ProcessStartInfo()

p_info = p_info.RedirectStandardOutput = False
p_info.UseShellExecute = True
p_info.FileName = "myprogram.exe"
p_info.Arguments = "c:\mydirectory\file.dll"
p.Start(p_info)
---------------------------------------------------
I tried setting UseShellExecute to false and for some reason, myprogram doesn't launch properly.
I can't have UseShellExecute and RedirectStandardOutput both true. So how do I accomplish getting this standard out?

Thanks for the help!
GeneralRe: Calling an .exe inside VB.NET Pin
baby.chai9-Apr-03 7:16
baby.chai9-Apr-03 7:16 
QuestionSort Array? Pin
bjblackmore8-Apr-03 23:42
bjblackmore8-Apr-03 23:42 
AnswerRe: Sort Array? Pin
Nick Seng9-Apr-03 15:18
Nick Seng9-Apr-03 15:18 
AnswerRe: Sort Array? Pin
Member 26118811-Apr-03 1:50
Member 26118811-Apr-03 1:50 
GeneralAccess Form question Pin
aldrus8-Apr-03 8:44
aldrus8-Apr-03 8:44 
GeneralRe: Access Form question Pin
Dave Kreskowiak8-Apr-03 11:27
mveDave Kreskowiak8-Apr-03 11:27 
GeneralPrinter Pool and WshNetwork Pin
Zulfikar Ali8-Apr-03 5:11
Zulfikar Ali8-Apr-03 5:11 
GeneralCreating RGN of form Pin
THEMYTH8-Apr-03 2:34
THEMYTH8-Apr-03 2:34 
GeneralRe: Creating RGN of form Pin
Wayne Phipps8-Apr-03 5:23
Wayne Phipps8-Apr-03 5:23 
GeneralRe: Creating RGN of form Pin
THEMYTH8-Apr-03 8:45
THEMYTH8-Apr-03 8:45 
GeneralRe: Creating RGN of form Pin
J. Dunlap8-Apr-03 9:07
J. Dunlap8-Apr-03 9:07 
GeneralRe: Creating RGN of form Pin
THEMYTH8-Apr-03 11:49
THEMYTH8-Apr-03 11:49 
GeneralDataGrid Problem/Question Pin
Mike Murphy8-Apr-03 1:29
Mike Murphy8-Apr-03 1:29 
Generaldatabase question Pin
Sarvesvara (BVKS) Dasa7-Apr-03 22:55
Sarvesvara (BVKS) Dasa7-Apr-03 22:55 
GeneralRe: database question Pin
Ray Cassick8-Apr-03 1:28
Ray Cassick8-Apr-03 1:28 
GeneralRe: database question Pin
Sarvesvara (BVKS) Dasa8-Apr-03 1:54
Sarvesvara (BVKS) Dasa8-Apr-03 1:54 
GeneralRe: database question Pin
Ray Cassick8-Apr-03 2:21
Ray Cassick8-Apr-03 2:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.