-
Capture DOS output after CreateProcess
I want to run the CreateProcess method in a console session in which I can do some subsequent processing to capture response output coming from a remote computer that is generated after the process I have run using CreateProcess has completed.
The output that follows my CreateProcess command cannot be piped so somehow after my initial command has been completed I would like to capture the output that I see in the console window when I run the process via a batch file.
Are there some special parameter settings I should use for calling CreateProcess in this instance? What could I use to capture the response output? At the moment only ReadConsoleOutput looks useful to me.
-
You might want to see if the following example helps:
http://vb.mvps.org/samples/project.asp?id=console
Paul
~~~~
Microsoft MVP (Visual Basic)
-
Adaption of Console example
The Console example that you have pointed me to is a totally independent solution as far as I can see. I am needing to get this functionality of which I have spoken into an existing ActiveX component so am uncertain if this example will help but I will take a look at it and see.
-
No use of ReadConsoleOutput
I believe the method I should be using is ReadConsoleOutput. The Karl Peterson example you have pointed me to makes no use of this API at all.
-
Are you sure you don't need to use ReadConsoleOutputCharacter instead?
http://searchvb.techtarget.com/tip/1...my=%2Fpr%2F4f0
Paul
~~~~
Microsoft MVP (Visual Basic)
Similar Threads
-
By satya_gsn in forum .NET
Replies: 2
Last Post: 06-29-2005, 03:14 PM
-
By Ranger in forum VB Classic
Replies: 2
Last Post: 12-11-2000, 06:00 AM
-
By Ranger in forum VB Classic
Replies: 0
Last Post: 12-11-2000, 03:00 AM
-
By Christopher Lutz in forum VB Classic
Replies: 8
Last Post: 05-08-2000, 05:06 PM
-
By Christopher Lutz in forum VB Classic
Replies: 0
Last Post: 05-03-2000, 04:31 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks