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. Execute exe from Web App

Execute exe from Web App

Scheduled Pinned Locked Moved ASP.NET
sysadmincsharpasp-netalgorithmshelp
8 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.
  • E Offline
    E Offline
    Elizma
    wrote on last edited by
    #1

    Hi Guys and Gals I've tried almost everything, so this is the last resort. I really do hope someone might be able to help me. I have a web page (ASP.NET). In here I have a button. When the user clicks the button a bat file needs to execute on the client machine. The bat file will contain a link to a .aut file. I've tried the System.Diagnostics.Process, but this executes the file on the server and also under the NETWORK SERVICE account. Thus the user never see what's happening because it's not happening on his/her machine. Can anybody please either give me advice on how to accomplish this or direct me to a article that can explain this. I've been searching for 8 hours now and just cant find anything workable. Thank you so much. I will be forever greatful. Elizma

    G K L Y 4 Replies Last reply
    0
    • E Elizma

      Hi Guys and Gals I've tried almost everything, so this is the last resort. I really do hope someone might be able to help me. I have a web page (ASP.NET). In here I have a button. When the user clicks the button a bat file needs to execute on the client machine. The bat file will contain a link to a .aut file. I've tried the System.Diagnostics.Process, but this executes the file on the server and also under the NETWORK SERVICE account. Thus the user never see what's happening because it's not happening on his/her machine. Can anybody please either give me advice on how to accomplish this or direct me to a article that can explain this. I've been searching for 8 hours now and just cant find anything workable. Thank you so much. I will be forever greatful. Elizma

      G Offline
      G Offline
      Gamzun
      wrote on last edited by
      #2

      I think it's only possible with ActiveX

      Please don't forget to mark 'Good Answer', if you find it really a good one! Kashif

      1 Reply Last reply
      0
      • E Elizma

        Hi Guys and Gals I've tried almost everything, so this is the last resort. I really do hope someone might be able to help me. I have a web page (ASP.NET). In here I have a button. When the user clicks the button a bat file needs to execute on the client machine. The bat file will contain a link to a .aut file. I've tried the System.Diagnostics.Process, but this executes the file on the server and also under the NETWORK SERVICE account. Thus the user never see what's happening because it's not happening on his/her machine. Can anybody please either give me advice on how to accomplish this or direct me to a article that can explain this. I've been searching for 8 hours now and just cant find anything workable. Thank you so much. I will be forever greatful. Elizma

        K Offline
        K Offline
        Kannan Ar
        wrote on last edited by
        #3

        As like Gamzun said an activeX control may helps you. But it only properly works on IE. Perhaps a java applet is also able to execute an exe.

        1 Reply Last reply
        0
        • E Elizma

          Hi Guys and Gals I've tried almost everything, so this is the last resort. I really do hope someone might be able to help me. I have a web page (ASP.NET). In here I have a button. When the user clicks the button a bat file needs to execute on the client machine. The bat file will contain a link to a .aut file. I've tried the System.Diagnostics.Process, but this executes the file on the server and also under the NETWORK SERVICE account. Thus the user never see what's happening because it's not happening on his/her machine. Can anybody please either give me advice on how to accomplish this or direct me to a article that can explain this. I've been searching for 8 hours now and just cant find anything workable. Thank you so much. I will be forever greatful. Elizma

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Create an anchor tag that points to the absolute path of the batch file. But the batch file needs to be in the client machine already.

          <a href="file://C:/myfile.bat">Click here</a>

          E 1 Reply Last reply
          0
          • E Elizma

            Hi Guys and Gals I've tried almost everything, so this is the last resort. I really do hope someone might be able to help me. I have a web page (ASP.NET). In here I have a button. When the user clicks the button a bat file needs to execute on the client machine. The bat file will contain a link to a .aut file. I've tried the System.Diagnostics.Process, but this executes the file on the server and also under the NETWORK SERVICE account. Thus the user never see what's happening because it's not happening on his/her machine. Can anybody please either give me advice on how to accomplish this or direct me to a article that can explain this. I've been searching for 8 hours now and just cant find anything workable. Thank you so much. I will be forever greatful. Elizma

            Y Offline
            Y Offline
            yesu prakash
            wrote on last edited by
            #5

            its possible using client side script..

            L 1 Reply Last reply
            0
            • L Lost User

              Create an anchor tag that points to the absolute path of the batch file. But the batch file needs to be in the client machine already.

              <a href="file://C:/myfile.bat">Click here</a>

              E Offline
              E Offline
              Elizma
              wrote on last edited by
              #6

              Hi Thank you soooo much for your solution. It works, but only partialy. It does not run when I call it from an aspx page, but if I create an html page it runs, but only if I run it directly from the saved location. When I deploy it into IIS and browse to the file, nothing happens. It's almost as if IIS is blocking this. This will also explain why nothing is happening in the aspx page. Am I missing something? Kind Regards, Elizma

              1 Reply Last reply
              0
              • Y yesu prakash

                its possible using client side script..

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                Client side scripts cannot access file system :-(

                Y 1 Reply Last reply
                0
                • L Lost User

                  Client side scripts cannot access file system :-(

                  Y Offline
                  Y Offline
                  yesu prakash
                  wrote on last edited by
                  #8

                  javascript var obj = new ActiveXObject("Wscript.shell"); obj.Run(FileName);

                  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