?
Solved

getting data from an .exe

Posted on 2004-10-01
6
Medium Priority
?
182 Views
Last Modified: 2010-04-17
im not asking for any code here, i just want to know roughly how something is done (and no this is not homework).

if i have an already compiled app (in this example an ftp program) and i want to be able to extract data from that program (like avg speed, etc.)  is this possible?

thanks.
0
Comment
Question by:bramsquad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
6 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 800 total points
ID: 12199859
Sorry, can't be done unless it is 'built-in'.
I'm willing to be disproven of course, but have seen a similar question a half dozen times this year... :(
0
 
LVL 11

Assisted Solution

by:griessh
griessh earned 600 total points
ID: 12200139
Hi bramsquad,

It may be possible to get part of it.
If your software displays that information on a command line screen you could try to 'pipe' it into a file.

An example for Windows:

The 'dir' command lists the content of a directory on screen.
'dir > test.txt' pipes this information to a file 'test.txt' which you can read.

Be aware that not all software has pipes inplemented very well (especially not MS software).


======
Werner
0
 
LVL 3

Assisted Solution

by:Arundel_Castle
Arundel_Castle earned 600 total points
ID: 12200170
I have never heard of this either. Though why you need to I don't now. Just write you information out into a text file that resides beside the exe. Your other app can then pick up the info.
0
 
LVL 11

Expert Comment

by:griessh
ID: 12200180
For an ftp program (if it is a commandline app) I would suggest to start it with the -s option to read the commands from a file. This way you could use the pipe.

ftp -s "commands" > output.txt

Does that help?
0
 
LVL 3

Expert Comment

by:Arundel_Castle
ID: 12200186
If you think about though, windows itself kicks out info into files. Think about the events and how there handled. You can order, and timestamp your data.
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Simple Linear Regression
Six Sigma Control Plans
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question