Results 1 to 5 of 5

Thread: Original Post unanswered - still interested

  1. #1
    Guest

    Post

    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

  2. #2
    Junior Member
    Join Date
    Dec 1999
    Posts
    22

    Post

    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

  3. #3
    New Member
    Join Date
    Dec 1999
    Posts
    2

    Post

    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

  4. #4
    Guest

    Post

    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

  5. #5
    New Member
    Join Date
    Dec 1999
    Posts
    2

    Post

    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
  •  



Click Here to Expand Forum to Full Width