|
-
Mar 15th, 2005, 07:19 AM
#1
Thread Starter
New Member
how i can do that???
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
-
Mar 15th, 2005, 07:28 PM
#2
Re: how i can do that???
 Originally Posted by negrooo
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:
System.Diagnostics.Process.Start("@C:\app.exe");
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Mar 16th, 2005, 05:05 AM
#3
Thread Starter
New Member
Re: how i can do that???
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
-
Mar 16th, 2005, 12:46 PM
#4
Re: how i can do that???
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
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|