Running an external executable within a program

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JMe9ka

    #1

    Running an external executable within a program



    Is it possible to run an external executable (.exe) from within a
    program?

    Let's say you have a windows form control with a button that says "Run"
    and when the button is clicked, it launches a totally different
    program... let's say Notepad or something.

    I've been searching for a bit and can't seem to find any leads as to
    where I can find information.


    Any help is appreciated.

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • Peter Rilling

    #2
    Re: Running an external executable within a program

    Take a look at the Process class.

    "JMe9ka" <jaymenonaka@ya hoo.com> wrote in message
    news:#qrPCeTVDH A.2004@TK2MSFTN GP10.phx.gbl...[color=blue]
    >
    >
    > Is it possible to run an external executable (.exe) from within a
    > program?
    >
    > Let's say you have a windows form control with a button that says "Run"
    > and when the button is clicked, it launches a totally different
    > program... let's say Notepad or something.
    >
    > I've been searching for a bit and can't seem to find any leads as to
    > where I can find information.
    >
    >
    > Any help is appreciated.
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it![/color]


    Comment

    • Jop Pascual

      #3
      Re: Running an external executable within a program

      Try: System.Diagnost ics.Process.Sta rt(@"c:\windows \system32\cmd.e xe");

      --
      /jop

      "JMe9ka" <jaymenonaka@ya hoo.com> wrote in message
      news:%23qrPCeTV DHA.2004@TK2MSF TNGP10.phx.gbl. ..[color=blue]
      >
      >
      > Is it possible to run an external executable (.exe) from within a
      > program?
      >
      > Let's say you have a windows form control with a button that says "Run"
      > and when the button is clicked, it launches a totally different
      > program... let's say Notepad or something.
      >
      > I've been searching for a bit and can't seem to find any leads as to
      > where I can find information.
      >
      >
      > Any help is appreciated.
      >
      > *** Sent via Developersdex http://www.developersdex.com ***
      > Don't just participate in USENET...get rewarded for it![/color]


      Comment

      Working...