Solved

getting data from an .exe

Posted on 2004-10-01
6
180 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 200 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 150 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 150 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
iframe detection of parent window scale 20 93
incorrect syntax near the order by 10 57
IDE for Python 5 72
Problems moving Excel files from local drive to server 4 35
In this post we will learn different types of Android Layout and some basics of an Android App.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

733 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