Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to use C# to execute another program

How to use C# to execute another program

Scheduled Pinned Locked Moved C#
questioncsharptutorial
15 Posts 12 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mercenary01
    wrote on last edited by
    #1

    How do I use C# to run another exe program? like in C we can use system function, is there something similar in C# ?? Thanks, Samuel

    C J D T 4 Replies Last reply
    0
    • M mercenary01

      How do I use C# to run another exe program? like in C we can use system function, is there something similar in C# ?? Thanks, Samuel

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      This question has been asked a number of times already, have you searched the forums? A quick google search for "C# run another program" reveals the info you need.

      Tech, life, family, faith: Give me a visit. I'm currently blogging about: Roman Catholic Relevance? The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

      J 1 Reply Last reply
      0
      • M mercenary01

        How do I use C# to run another exe program? like in C we can use system function, is there something similar in C# ?? Thanks, Samuel

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Process.Start

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        M 1 Reply Last reply
        0
        • C Christian Graus

          Process.Start

          Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          M Offline
          M Offline
          mercenary01
          wrote on last edited by
          #4

          Thanks

          1 Reply Last reply
          0
          • J Judah Gabriel Himango

            This question has been asked a number of times already, have you searched the forums? A quick google search for "C# run another program" reveals the info you need.

            Tech, life, family, faith: Give me a visit. I'm currently blogging about: Roman Catholic Relevance? The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

            J Offline
            J Offline
            Jason Hanford Smith
            wrote on last edited by
            #5

            Would it have hurt you to have given an informative reply. For sure he could have googled it... you obviously did to know for sure that it was there... Could you not have at least put a link to the first result?

            J D 2 Replies Last reply
            0
            • J Jason Hanford Smith

              Would it have hurt you to have given an informative reply. For sure he could have googled it... you obviously did to know for sure that it was there... Could you not have at least put a link to the first result?

              J Offline
              J Offline
              Judah Gabriel Himango
              wrote on last edited by
              #6

              Catch a man a fish, you've fed him for a day. Teach a man to fish, you've fed him for life.

              Tech, life, family, faith: Give me a visit. I'm currently blogging about: Roman Catholic Relevance? The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

              L M D 3 Replies Last reply
              0
              • J Jason Hanford Smith

                Would it have hurt you to have given an informative reply. For sure he could have googled it... you obviously did to know for sure that it was there... Could you not have at least put a link to the first result?

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                He did give him the information he needed. He told the man who to find the information on his own. Judah didn't ahve to Google this to find out if there was any info on it out there. It's a question that's been asked and answered a couple of million times already! Like Judah said, answering a simple question directly only serves to answer that single question. Teaching him how to find his own answers answers many, many more questions than just the one.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007

                1 Reply Last reply
                0
                • M mercenary01

                  How do I use C# to run another exe program? like in C we can use system function, is there something similar in C# ?? Thanks, Samuel

                  D Offline
                  D Offline
                  DaveyM69
                  wrote on last edited by
                  #8

                  Look at the System.Diagnostics.Process class, it might be just what you're looking for. Dave

                  1 Reply Last reply
                  0
                  • J Judah Gabriel Himango

                    Catch a man a fish, you've fed him for a day. Teach a man to fish, you've fed him for life.

                    Tech, life, family, faith: Give me a visit. I'm currently blogging about: Roman Catholic Relevance? The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

                    L Offline
                    L Offline
                    Larantz
                    wrote on last edited by
                    #9

                    Hear hear! :D -Larantz-

                    for those about to code, we salute you
                    http://www.itverket.no

                    1 Reply Last reply
                    0
                    • J Judah Gabriel Himango

                      Catch a man a fish, you've fed him for a day. Teach a man to fish, you've fed him for life.

                      Tech, life, family, faith: Give me a visit. I'm currently blogging about: Roman Catholic Relevance? The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

                      M Offline
                      M Offline
                      Malcolm Smart
                      wrote on last edited by
                      #10

                      How to catch fish? Plz send codes.

                      "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

                      "I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.

                      P 1 Reply Last reply
                      0
                      • J Judah Gabriel Himango

                        Catch a man a fish, you've fed him for a day. Teach a man to fish, you've fed him for life.

                        Tech, life, family, faith: Give me a visit. I'm currently blogging about: Roman Catholic Relevance? The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

                        D Offline
                        D Offline
                        Dan Neely
                        wrote on last edited by
                        #11

                        Light a man a fire you've warmed him for a night. Light a man on fire you've warmed him for life.

                        -- If you view money as inherently evil, I view it as my duty to assist in making you more virtuous.

                        B 1 Reply Last reply
                        0
                        • D Dan Neely

                          Light a man a fire you've warmed him for a night. Light a man on fire you've warmed him for life.

                          -- If you view money as inherently evil, I view it as my duty to assist in making you more virtuous.

                          B Offline
                          B Offline
                          Big Daddy Farang
                          wrote on last edited by
                          #12

                          Darn the luck. I was going to post a similar reply but then I thought maybe I shouldn't. You must be a sick individual, and yes it takes one to know one. BDF

                          D 1 Reply Last reply
                          0
                          • M Malcolm Smart

                            How to catch fish? Plz send codes.

                            "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

                            "I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.

                            P Offline
                            P Offline
                            Professor Sharada Ulhas
                            wrote on last edited by
                            #13

                            malcolm! this ur professor from university. i have a doubt on ur ethical sensual natures. u must no post my homowork on the cpiansex. i tell class u must no post fishing homoworks on the cians  next time i bend u over bare buttocks and spank u in front of all classes to shame u. black grade for u this semester. CURSES OF DARK SHIVA ON U ETERNITY EVERLASTING!!!1! :((

                            Sincelery yours, Computer Information conSciences Professor and grader, Sharada Ulhas

                            1 Reply Last reply
                            0
                            • B Big Daddy Farang

                              Darn the luck. I was going to post a similar reply but then I thought maybe I shouldn't. You must be a sick individual, and yes it takes one to know one. BDF

                              D Offline
                              D Offline
                              Dan Neely
                              wrote on last edited by
                              #14

                              I've been justly acused of many things in my life. Normalcy has never been one of them.

                              -- If you view money as inherently evil, I view it as my duty to assist in making you more virtuous.

                              1 Reply Last reply
                              0
                              • M mercenary01

                                How do I use C# to run another exe program? like in C we can use system function, is there something similar in C# ?? Thanks, Samuel

                                T Offline
                                T Offline
                                Thomas Stockwell
                                wrote on last edited by
                                #15

                                System.Diagnostics.Process.Start(/*url or file goes here*/)

                                Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios[^]

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • World
                                • Users
                                • Groups