MS DOS

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • How to pass inputs to called exe application from Batch file during the applications execu

    4 answers - 583 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi,
    I have a problem passing inputs to an application being called from a
    batch file during the exetution of the application. The variable to
    pass is 'Y', which needs to be passed 3 times during the execution of
    the called application. I am successful in passing it the first time by
    using the 'echo' command -
    echo Y|abc.exe
    The problem is, the called exe is taking 'N' as the next 2 inputs even
    if I do not mention it in my batch file.
    Any idea how to resolve this situation?
    Regards,
    Somik.
  • No.1 | | 358 bytes | |

    <somik.basu@gmail.comschreef in berichtnieuws
    1143006226.613169.75370@
    Hi,

    Hello Somik
    The variable to pass is 'Y', which needs to be passed 3 times
    during the execution of the called application.

    It fully depends on the App. But you could try :

    echo YYY|abc.exe

    Regards,
    Rudy Wieser

  • No.2 | | 473 bytes | |

    Hi Rudy,
    Thankx for the suggestion. I have tried that and also taking input
    from a text file
    abc.exe < input.txt
    by supplying the parameters as
    Y
    Y
    Y

    It didn't work. The application is still taking N for the next two
    prompts.
    After fighting it out for 2 days with all permutations and combinations
    of DS commands, I am beginning to feel it's not possible from a batch
    script.

    Regards,
    Somik.

  • No.3 | | 1046 bytes | |

    somik.basu@gmail.com wrote:
    I have a problem passing inputs to an application being called from a
    batch file during the exetution of the application. The variable to
    pass is 'Y', which needs to be passed 3 times during the execution of
    the called application. I am successful in passing it the first time by
    using the 'echo' command -
    echo Y|abc.exe

    The problem is, the called exe is taking 'N' as the next 2 inputs even
    if I do not mention it in my batch file.
    Any idea how to resolve this situation?

    Somik.

    It sounds as though the `N' is internal to the command. You might
    try a keystacker. It can pass any keystroke, and the better ones can enter
    those keystrokes at selected points. However, not all programs can work
    with a keystacker.

    Search on "Bret Johnson" at:

    http://www.chebucto.ca/~ak621/DS/Websites.html

    There are many more. I usually use ANSIPLUS.

    Richard Bonner
    http://www.chebucto.ca/~ak621/DS/
  • No.4 | | 435 bytes | |

    somik.basu@gmail.com wrote:
    I have a problem passing inputs to an application being called from a
    batch file during the exetution of the application. The variable to
    pass is 'Y', which needs to be passed 3 times during the execution of

    This FAQ problem is solved my using a keyfake auxiliary program. Like
    31317 Apr 21 1992
    keyf_12.zip Keyfeed v1.2 TSR keystroke feeder utility

    All the best, Timo

Re: How to pass inputs to called exe application from Batch file during the applications execu


max 4000 letters.
Your nickname that display:
In order to stop the spam: 8 + 7 =
QUESTION ON "MS DOS"

EMSDN.COM