473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

How to get some specific parts of the result from Dos window?

After running a Dos analysis program, the result composes of randomly several
lines.
I want to catch just some specific parts of the result, not all, in the Dos
window. And then display the specific parts in a message box.
If it is possible, how can I code for this?
For example, I want to get the part information "<<" marked from the
following results.
Thanks a lot.
Havea a nice day.

Eunice.
******the random result from dos analysis program******

Parsing graph file: InputFile.txt

ABC Parameters:
Limit = 0
Iterations = 1
Threshold = 0.00
Nsubs = 3
Beam Length = 4
Connectivity Power = 0.00
Coverage Power = 0.00
Compactness Power = 0.00
Minimum encoding
Input graph Statistics :
Number of vertices = 0
Number of edges = 0
Input graph DL = 0.000000
Number of vertex labels = 0
Number of edge labels = 0

Predefined substructures file: SubdueDatabase.g

No substructures to replace.
*****************
Nov 17 '05 #1
2 1316
Eunice <Eu****@discussions.microsoft.com> wrote:
After running a Dos analysis program, the result composes of randomly several
lines.
I want to catch just some specific parts of the result, not all, in the Dos
window. And then display the specific parts in a message box.
If it is possible, how can I code for this?
For example, I want to get the part information "<<" marked from the
following results.


Well, redirect standard output (and possibly standard error) when you
start the process (see the docs for Process and ProcessStartInfo for
more info on that). Then read the output a line at a time, and when you
see "Input graph Statistics:" start writing the output to the message
box (making sure you do so in a thread-safe way - you almost certainly
don't want the code which reads from the process's output to be
executing on the UI thread).

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #2
Thanks a lot. Jon.^^
It was so helpful to me.

Best Regard,
Eunice.
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: kerri | last post by:
Hi, I need to do a mysqldump of specific inserts, updates & deletes. I read in the docs that I can use -w or --where. Can I do a join? Could someone provide an example? Is there another...
4
by: Sammy | last post by:
Hello all Is there a good online resource that discusses C++ equivalents for windows code? Not a simple subject of course... but perhaps a good place to start with the simpler parts. Thx :o)
4
by: kinne | last post by:
The following code is supposed to reverse the date in "yyyy-mm-dd" format, but it produces different results in Firefox 1.0 and in Internet Explorer 6SP1. In Firefox, the result is correct...
5
by: Scott | last post by:
Hello, I have to admit, I'm not very proficient with javascript, and I'm hoping someone in this group can help. What I have is some SHTML pages that I need to be able to dissect and print...
4
by: striker | last post by:
I have a comma delimited text file that has multiple instances of multiple commas. Each file will contain approximatley 300 lines. For example: one, two, three,,,,four,five,,,,six one, two,...
4
by: pbd22 | last post by:
Hi. I have an ajax question. I am wondering if it is possible to get the response from a method within a given page, and that function alone? Traditionally, I have been getting the response...
2
by: nani | last post by:
Hi friends I am creating one web application in that i take one hyperlink control.when i click hyperlink control.how to split the page in two parts and display the result in that secound part If...
0
by: psycho | last post by:
I am working on an application in which web parts are being used. I came across few issues: 1. I was unable to move any verb before Title text of web part. 2. The drag and drop feature is not...
5
by: thatcollegeguy | last post by:
Below are my 3php and 2js files. I create a table using ajax/php and then want to change the values in the tables add(+ number for teamid) id's for each specific td in the table. I don't know...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.