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. Run exe on client Machine

Run exe on client Machine

Scheduled Pinned Locked Moved C#
helpjavascriptsysadmintutorialquestion
6 Posts 5 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.
  • S Offline
    S Offline
    Sun Rays
    wrote on last edited by
    #1

    Hi, I have created one exe file. File is on server. Now I want to run this exe on client Machine. When ever my web application's webpage is open it will ask for run that exe. How to do that ? If I am writting window.open("EXE PATH"); in javascript. then at other side dialog box of open, save , cancel is coming. When I am trying to open it. Its giving error like "EXE name. has encountered a problemm and need to close....." Whats problem here ?

    Thanks, Sun Rays

    C G D 3 Replies Last reply
    0
    • S Sun Rays

      Hi, I have created one exe file. File is on server. Now I want to run this exe on client Machine. When ever my web application's webpage is open it will ask for run that exe. How to do that ? If I am writting window.open("EXE PATH"); in javascript. then at other side dialog box of open, save , cancel is coming. When I am trying to open it. Its giving error like "EXE name. has encountered a problemm and need to close....." Whats problem here ?

      Thanks, Sun Rays

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

      Thankfully, what you want to do, you can't do. Imagine how many viruses you'd have running wild on your PC, if you could.

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      J 1 Reply Last reply
      0
      • S Sun Rays

        Hi, I have created one exe file. File is on server. Now I want to run this exe on client Machine. When ever my web application's webpage is open it will ask for run that exe. How to do that ? If I am writting window.open("EXE PATH"); in javascript. then at other side dialog box of open, save , cancel is coming. When I am trying to open it. Its giving error like "EXE name. has encountered a problemm and need to close....." Whats problem here ?

        Thanks, Sun Rays

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        Sun Rays wrote:

        When ever my web application's webpage is open it will ask for run that exe.

        Exactly. You can't ever start an application from the browser without the user having to allow it. Any solution means that there is user confirmation at some point.

        Sun Rays wrote:

        Its giving error like "EXE name. has encountered a problemm and need to close....."

        That means that your program is faulty, and has crashed.

        --- "Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things." -- Douglas Adams

        1 Reply Last reply
        0
        • C Christian Graus

          Thankfully, what you want to do, you can't do. Imagine how many viruses you'd have running wild on your PC, if you could.

          Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          J Offline
          J Offline
          J4amieC
          wrote on last edited by
          #4

          Christian Graus wrote:

          Thankfully, what you want to do, you can't do

          Of course you can. You can have a hyperlink to an EXE file and the browser will ask if you want to "run/save" the file. This is the behaviour the OP described its just that his EXE is crashing as it runs.

          --- How to get answers to your questions[^]

          S 1 Reply Last reply
          0
          • S Sun Rays

            Hi, I have created one exe file. File is on server. Now I want to run this exe on client Machine. When ever my web application's webpage is open it will ask for run that exe. How to do that ? If I am writting window.open("EXE PATH"); in javascript. then at other side dialog box of open, save , cancel is coming. When I am trying to open it. Its giving error like "EXE name. has encountered a problemm and need to close....." Whats problem here ?

            Thanks, Sun Rays

            D Offline
            D Offline
            darkelv
            wrote on last edited by
            #5

            .NET exe? Assembly trusted?

            1 Reply Last reply
            0
            • J J4amieC

              Christian Graus wrote:

              Thankfully, what you want to do, you can't do

              Of course you can. You can have a hyperlink to an EXE file and the browser will ask if you want to "run/save" the file. This is the behaviour the OP described its just that his EXE is crashing as it runs.

              --- How to get answers to your questions[^]

              S Offline
              S Offline
              Sun Rays
              wrote on last edited by
              #6

              Hi, Thanks for your reply. But I dont want to ask user to save or open the exe. I just wanna run it on machine, Thanks

              Thanks, Sun Rays

              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