473,396 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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.
Feb 3 '10 #1
3 2919
alexis4
113 100+
You can use the Process Class to open an exe.

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.
Feb 3 '10 #2
Plater
7,872 Expert 4TB
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.
Feb 4 '10 #3
Hi Freinds,
THanks a lot for your replies.
I have finally got it done using the send keys.
Feb 13 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Nashat Wanly | last post by:
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET View products that this article applies to. This article was previously published under Q310070 For a Microsoft...
4
by: wobbles | last post by:
Hi Everyone, I've spent hours investigating why my Async (one way) call wasn't invoking the method on my server. Basically, if I remove " Console.ReadLine() ", the method DOESN'T get invoked....
6
by: Mike Malter | last post by:
I am getting a error that should not be happening when I instantiate an object from my business layer in a console application within my solution. I get an "object reference not set to an...
0
by: Robert Rae | last post by:
I'm calling the C++ function below from C#: GENCLIENT_API int CleanseEx(char ncSystem, const char *strServer, const char **pNames, const char **pInputData, const char **pRules, char...
2
by: Ronald S. Cook | last post by:
I have the following line that I wish to execute from within a VB.NET Console Application. svcutil.exe http://localhost/COWFeedyardService/Services/Animal.svc /out:Animal.vb /config:App.config...
0
by: mike.hudson | last post by:
I'm looking for an example of how to call a SAP RFC from within a C# program. If I have a function called "MyFunction" and it takes 1 input parameter and returns one output parameter (a table) how...
3
by: Andy | last post by:
Hi Just starting out with C#. In the book I'm using it looks like it possible to get a console window within the IDE it self. But I can't find anything in the book about how they've managed to...
3
by: Rudi | last post by:
Hello, following problem: At program end or release an assembly a serial device should get a final exit sequence. How can I do this? With Dispose() it's no problem, but this assembly is used...
2
by: =?Utf-8?B?SmltIE93ZW4=?= | last post by:
Hi John, Hopefully this post will find its way back to you - or perhaps be answered by someone else. As I mentioned in my last post on the earlier portion of this thread, changing the...
4
by: =?Utf-8?B?U3ZlbiBXLg==?= | last post by:
Hi Newsgroup, I am developing a C# Windows Forms application that launches processes within a background worker.. The processes seem to have a memory limit of about 278mb. Some proccesses...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.