shell

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yang Li Ke

    shell

    Hi again :)

    let's say im calling a dos program
    from the shell like this:

    shell(myprog.ex e value, vbHide)

    The problem I have is that this dos
    program asks for a confirmation that
    the user must press Y or N

    Anyone knows a way to put this somewhere
    so that the dos program will get its
    response automatically ?

    Thank you


  • Slaatje

    #2
    Re: shell

    SendKeys

    Yang Li Ke heeft geschreven in bericht ...[color=blue]
    >Hi again :)
    >
    >let's say im calling a dos program
    >from the shell like this:
    >
    >shell(myprog.e xe value, vbHide)
    >
    >The problem I have is that this dos
    >program asks for a confirmation that
    >the user must press Y or N
    >
    >Anyone knows a way to put this somewhere
    >so that the dos program will get its
    >response automatically ?
    >
    >Thank you
    >
    >[/color]


    Comment

    • Stephane Richard

      #3
      Re: shell

      Not 100% sure about this with shelled apps....but you might wanna try the
      SendKeys command.

      Sendkeys "y"

      --
      Stéphane Richard
      Senior Software and Technology Supervisor

      For all your hosting and related needs
      "Yang Li Ke" <yanglike@sympa tico.ca> wrote in message
      news:ebnMa.6092 $Ec2.443030@new s20.bellglobal. com...[color=blue]
      > Hi again :)
      >
      > let's say im calling a dos program
      > from the shell like this:
      >
      > shell(myprog.ex e value, vbHide)
      >
      > The problem I have is that this dos
      > program asks for a confirmation that
      > the user must press Y or N
      >
      > Anyone knows a way to put this somewhere
      > so that the dos program will get its
      > response automatically ?
      >
      > Thank you
      >
      >[/color]


      Comment

      Working...