pls i want to open .exe file from abutton in c# ,and then write command in the .exe throw textbox in c# also ok...
can u tell me how i do that...
iam begginer in c#..so pls in details..ok
if u can send me acopy of reply at [email protected]
thanks
Printable View
pls i want to open .exe file from abutton in c# ,and then write command in the .exe throw textbox in c# also ok...
can u tell me how i do that...
iam begginer in c#..so pls in details..ok
if u can send me acopy of reply at [email protected]
thanks
I dont understand your question exactly, but if you want to run a program knowing the location of the exe file, you can do something like this:Quote:
Originally Posted by negrooo
System.Diagnostics.Process.Start("@C:\app.exe");
yes mr polite i will explain example....
i have prgogram (console application)..have command prompt..i want to write in it some commands and do (enter)...but by (button_click) in c# forum...oki pls reply
hmm from your button click event you can start the console app the way I told you. You need to know the path of your console application
so you do
System.Diagnostics.Process.Start ( @"Path of you console application here");
or if you want to pass arguments to your application, you can do this
System.Diagnostics.Process.Start ( @"Path of you console application here", "arguments to be passed to the exe");
if you actually want to type some things after you run the exe, I'm not sure how you would do it. You may need to use some APIs which makes it a bit more complicated