how to Call a exe within a C# console application?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sarathinew
    New Member
    • Feb 2010
    • 2

    how to Call a exe within a C# console application?

    Hi,

    I need to know how to call a exe within a C# console program.

    The target exe opens a windows form which has text boxes and check boxes and buttons.

    Is there a way to pass the parameters to the text boxes and check boxes and click the button in the form through my C# console application?

    Note: I dont have the source code for the target exe. i have the exe alone.

    Please help me.
  • alexis4
    New Member
    • Dec 2009
    • 113

    #2
    You can use the Process Class to open an exe.

    Originally posted by sarathinew
    Is there a way to pass the parameters to the text boxes and check boxes and click the button in the form through my C# console application?

    Note: I dont have the source code for the target exe. i have the exe alone.
    If this exe is not set up to wait signal commands from a port or read from a file or the registry periodically, then you must find the exe's code. Otherwise this is science fiction.

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      You can *maybe* use some win32 api (like SendKeys) or windows messaging to send keyboard and mouse clicks to the application.
      But I don't really know how to do it.

      Comment

      • sarathinew
        New Member
        • Feb 2010
        • 2

        #4
        Hi Freinds,
        THanks a lot for your replies.
        I have finally got it done using the send keys.

        Comment

        Working...