Results 1 to 4 of 4

Thread: how i can do that???

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    3

    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

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: how i can do that???

    Quote 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!!

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    3

    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

  4. #4
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    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
  •  



Click Here to Expand Forum to Full Width