|
-
Dec 27th, 1999, 10:14 PM
#1
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
-
Dec 28th, 1999, 06:13 AM
#2
Junior Member
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
-
Dec 29th, 1999, 01:11 AM
#3
New Member
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, 03:03 AM
#4
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
-
Dec 29th, 1999, 03:10 AM
#5
New Member
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).]
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
|
Click Here to Expand Forum to Full Width
|