Run external exe

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

    Run external exe

    How I can run an external executable that must run in the server side from
    the client browser.

    This executable has some parameters.

    Sincerely,



    Rafael


  • Peter Bucher [MVP]

    #2
    Re: Run external exe

    Hi Rafael
    How I can run an external executable that must run in the server side from
    the client browser.
    >
    This executable has some parameters.
    as you perceived, you can only run an executable on the server site.
    you can use the client side to receive the kind of executables and also the
    parameters.

    To run an executable on the server side, hav a look to the Process Class.
    - http://msdn2.microsoft.com/en-us/lib...s.process.aspx

    but be carefully with this, keep in mind that client side input allways is
    (or can be) evil!
    for example use an switch / Select Cast Statement to filter the input and
    except any
    evil input for execute something unexpected :-)

    --
    Gruss, Peter Bucher
    Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
    http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
    http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET


    Comment

    • Rafael tejera

      #3
      Re: Run external exe

      Thank you, but diagnostics.pro cess it is for c# windows form and not for
      webform.

      I'm searching for the equivalent of this in asp.net



      Rafael Tejera

      "Peter Bucher [MVP]" <peter.bucher@a spnetzone.dewro te in message
      news:uM7SC$tyHH A.464@TK2MSFTNG P02.phx.gbl...
      Hi Rafael
      >
      >How I can run an external executable that must run in the server side
      >from the client browser.
      >>
      >This executable has some parameters.
      as you perceived, you can only run an executable on the server site.
      you can use the client side to receive the kind of executables and also
      the parameters.
      >
      To run an executable on the server side, hav a look to the Process Class.
      - http://msdn2.microsoft.com/en-us/lib...s.process.aspx
      >
      but be carefully with this, keep in mind that client side input allways is
      (or can be) evil!
      for example use an switch / Select Cast Statement to filter the input and
      except any
      evil input for execute something unexpected :-)
      >
      --
      Gruss, Peter Bucher
      Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
      http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
      http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET
      >

      Comment

      • Peter Bucher [MVP]

        #4
        Re: Run external exe

        Hi Rafael
        Thank you, but diagnostics.pro cess it is for c# windows form and not for
        webform.
        No, it is also for webforms, but only for server side execution.

        --
        Gruss, Peter Bucher
        Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
        http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
        http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET


        Comment

        • bruce barker

          #5
          Re: Run external exe

          see the system.diagnost ics.process class

          -- bruce (sqlwork.com)

          Rafael tejera wrote:
          How I can run an external executable that must run in the server side from
          the client browser.
          >
          This executable has some parameters.
          >
          Sincerely,
          >
          >
          >
          Rafael
          >
          >

          Comment

          • Mark Rae [MVP]

            #6
            Re: Run external exe

            "Rafael tejera" <tejera@charter .netwrote in message
            news:OXQJPFuyHH A.4820@TK2MSFTN GP04.phx.gbl...
            Thank you, but diagnostics.pro cess it is for c# windows form and not for
            webform.
            Not true.
            I'm searching for the equivalent of this in asp.net
            protected void Page_Load(objec t sender, EventArgs e)
            {
            using (Process MyProcess = new Process())
            {
            MyProcess.Start Info = new ProcessStartInf o("........") ;
            MyProcess.Start ();
            }
            }


            --
            Mark Rae
            ASP.NET MVP


            Comment

            Working...