PDA

Click to See Complete Forum and Search --> : Original Post unanswered - still interested


Dec 27th, 1999, 09:14 PM
The original post by Jaric yesterday is as follows:

Communicating with DOS window

Is there some way that I can communicate with a dos window? I can send instructions to it via AppActivation & SendKey, but I would like to know if it is possible to obtain the response the command gets. For example. Say I send the command 'm' for make file. Now the DOS will ask for a file name. How do I obtain that that is what it wants off of that line. Any pointers in the right direction would be wonderful. Thank you in advance.

I am very much interested in information on this topic. Thanks
Boothman

B4
Dec 28th, 1999, 05:13 AM
Any indirect way of doing this would be creatiing a file, and parsing it. For example, if you wanted to ping yahoo.com you would do:
ping yahoo.com > myfile.txt
You would then proceed to parse the information received.

-B4

Jaric
Dec 29th, 1999, 12:11 AM
doing:
filename.ext > text.txt

only seems to save about 59-60 lines of text and then stops recording in text file. the program will continue to run, but it stops saving. if i do this method i would need a way to continue to delete the top of the text file line to make room for the new lines, or just have unlimited saving space.

Thanks for your Help,
Jaric

Dec 29th, 1999, 02:03 AM
Keep in mind that DOS only has a 64K buffer inside. You must Save the File then Append to the file, just like any DOS application would when MOVING or COPYING a file from one place to another. So try saveing and closing the file in your app then Append every 59-60 lines. You will then get the whole thing inside one text file.

Knight

Jaric
Dec 29th, 1999, 02:10 AM
I have figured out how to get the DOS program to constantly save itself to a .dat file, which so far has saved over 200 lines.

You see the DOS program is constantly running, so there is no place to stop/start it once its started else it willnot continue its process properly.

Now I need to figure out how to access the dat file even though it is already in use by the DOS program.

[This message has been edited by Jaric (edited 12-29-1999).]