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. Web Development
  3. ASP.NET
  4. How to call .exe file in the asp.net page

How to call .exe file in the asp.net page

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminwindows-admin
5 Posts 4 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.
  • H Offline
    H Offline
    hemrk
    wrote on last edited by
    #1

    Hello Evrybdy, Actually i have developed one vb.net project. i have an exe as well as all file for that project. i want to call that exe from my asp.net page's button click event. i am trying to use system.dianostics.process.startinfo and start. it is not giving me any error. only it doesnt do anything. its only on my desktop. so its IIS server and client. if anybody have any idea , how to do this..pls let me know. Thanks, Hemaxi

    M 1 Reply Last reply
    0
    • H hemrk

      Hello Evrybdy, Actually i have developed one vb.net project. i have an exe as well as all file for that project. i want to call that exe from my asp.net page's button click event. i am trying to use system.dianostics.process.startinfo and start. it is not giving me any error. only it doesnt do anything. its only on my desktop. so its IIS server and client. if anybody have any idea , how to do this..pls let me know. Thanks, Hemaxi

      M Offline
      M Offline
      Mircea Grelus
      wrote on last edited by
      #2

      The thing is you cannot run an exe from an aspx page. You can give the link to it and the browswer would prompt for the 'save as' dialog. It would be too much of a vulnerability to allow exe's to eb run from web. What you can do is create an active-x object (which can be run in a browser) if it fits your needs. Just Google for active x using c#. regards, Mircea Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.

      H 1 Reply Last reply
      0
      • M Mircea Grelus

        The thing is you cannot run an exe from an aspx page. You can give the link to it and the browswer would prompt for the 'save as' dialog. It would be too much of a vulnerability to allow exe's to eb run from web. What you can do is create an active-x object (which can be run in a browser) if it fits your needs. Just Google for active x using c#. regards, Mircea Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.

        H Offline
        H Offline
        hemrk
        wrote on last edited by
        #3

        actually i am using process.start for just a notepad .exe from aspx file. it opens in the memory,that you can see in taskmanager processes. but you can not see it. yeah and i will try for activex obj. thanks for reply..

        I S 2 Replies Last reply
        0
        • H hemrk

          actually i am using process.start for just a notepad .exe from aspx file. it opens in the memory,that you can see in taskmanager processes. but you can not see it. yeah and i will try for activex obj. thanks for reply..

          I Offline
          I Offline
          Ista
          wrote on last edited by
          #4

          if you get the process ID then you can issue a GetWindowText to get all of the contents. Although its better to let a remoting object handle this since your inside the IIS's process. 1 line of code equals many bugs. So don't write any!!

          1 Reply Last reply
          0
          • H hemrk

            actually i am using process.start for just a notepad .exe from aspx file. it opens in the memory,that you can see in taskmanager processes. but you can not see it. yeah and i will try for activex obj. thanks for reply..

            S Offline
            S Offline
            Steve McLenithan
            wrote on last edited by
            #5

            When you do what you stated all it does is run the program on the SERVER. You can not start an EXE on the server and expect it to run on the client.

            Found on Bash.org [erno] hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is.

            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