run another .exe

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

    #1

    run another .exe

    How I can run some .exe from c# application?

    Thanks


  • Goran Genter

    #2
    Re: run another .exe

    "MP" <plamir@volja.n et> wrote in message
    news:eNEfEFubDH A.1744@TK2MSFTN GP12.phx.gbl[color=blue]
    > How I can run some .exe from c# application?
    >
    > Thanks[/color]

    Check Process class


    Comment

    • MP

      #3
      Re: run another .exe

      Do you know for some example?
      "Goran Genter" <gento@fly.srk. fer.hr> wrote in message
      news:bipubt$dp5 $1@bagan.srce.h r...[color=blue]
      > "MP" <plamir@volja.n et> wrote in message
      > news:eNEfEFubDH A.1744@TK2MSFTN GP12.phx.gbl[color=green]
      > > How I can run some .exe from c# application?
      > >
      > > Thanks[/color]
      >
      > Check Process class
      >
      >[/color]


      Comment

      • Chris Taylor

        #4
        Re: run another .exe

        Hi,

        System.Diagnost ics.Process.Sta rt("notepad.exe ");

        This will start notepad, check the Process class as you can do much more
        with it.

        Regards

        Chris Taylor

        "MP" <plamir@volja.n et> wrote in message
        news:eNEfEFubDH A.1744@TK2MSFTN GP12.phx.gbl...[color=blue]
        > How I can run some .exe from c# application?
        >
        > Thanks
        >
        >[/color]


        Comment

        • Willy Denoyette [MVP]

          #5
          Re: run another .exe

          MP wrote:
          || Do you know for some example?


          The MSDN class description does contain a sample (see: Process.Start).

          Willy.


          Comment

          • MP

            #6
            Re: run another .exe

            I have try:
            System.Diagnost ics.Process.Sta rt("Cl.exe, -help");

            But didn't work...



            "MP" <plamir@volja.n et> wrote in message
            news:OAILNpvbDH A.2932@tk2msftn gp13.phx.gbl...[color=blue]
            > Unfortunately, I didn't find how I can run some application with some
            > parameters. For e.g.
            >
            > System.Diagnost ics.Process.Sta rt("cl.exe -help");
            >
            > in
            >
            > C:\Program Files\Microsoft Visual Studio\VC98\Bin \cl.exe -help
            >
            >
            > Any ideas?
            >
            > Thanks
            >
            >
            >[/color]


            Comment

            • Chris Taylor

              #7
              Re: run another .exe

              Hi,

              System.Diagnost ics.Process.Sta rt( "cl.exe", "-help" );

              Regards

              Chris Taylor

              "MP" <plamir@volja.n et> wrote in message
              news:OAILNpvbDH A.2932@tk2msftn gp13.phx.gbl...[color=blue]
              > Unfortunately, I didn't find how I can run some application with some
              > parameters. For e.g.
              >
              > System.Diagnost ics.Process.Sta rt("cl.exe -help");
              >
              > in
              >
              > C:\Program Files\Microsoft Visual Studio\VC98\Bin \cl.exe -help
              >
              >
              > Any ideas?
              >
              > Thanks
              >
              >
              >[/color]


              Comment

              • Willy Denoyette [MVP]

                #8
                Re: run another .exe

                MP wrote:
                || I have try:
                || System.Diagnost ics.Process.Sta rt("Cl.exe, -help");
                ||
                || But didn't work...
                ||
                ||
                ||

                Please start reading the documentation before asking the most basic questions, [System.Diagnost ics.Process.Sta rt] has a sample
                exactly doing this.

                Willy.



                Comment

                • Lumir Vanek

                  #9
                  Re: run another .exe

                  System.Diagnost ics.Process excelProcess = new System.Diagnost ics.Process();

                  excelProcess.En ableRaisingEven ts = false;

                  excelProcess.St artInfo.FileNam e = "excel";

                  excelProcess.St artInfo.Argumen ts = "\"" + strExcelFileNam e + "\"";

                  excelProcess.St art();

                  HTH,

                  Lumir Vanek

                  "MP" <plamir@volja.n et> pí¹e v diskusním pøíspìvku
                  news:%23DScaLub DHA.2544@TK2MSF TNGP09.phx.gbl. ..[color=blue]
                  > Do you know for some example?
                  > "Goran Genter" <gento@fly.srk. fer.hr> wrote in message
                  > news:bipubt$dp5 $1@bagan.srce.h r...[color=green]
                  > > "MP" <plamir@volja.n et> wrote in message
                  > > news:eNEfEFubDH A.1744@TK2MSFTN GP12.phx.gbl[color=darkred]
                  > > > How I can run some .exe from c# application?
                  > > >
                  > > > Thanks[/color]
                  > >
                  > > Check Process class
                  > >
                  > >[/color]
                  >
                  >[/color]


                  Comment

                  Working...