how to launch an application in the client system ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Prasadsm
    New Member
    • Nov 2008
    • 14

    how to launch an application in the client system ?

    Hi All,

    how to launch an application [say notepad] installed in the client system on button click,..using asp.net?
    please respond soon.

    Thanks
  • ssnaik84
    New Member
    • Aug 2009
    • 149

    #2
    browsers do not have permissions to access client system.
    you can achieve such tasks to some extend by using ActiveX, but again it's limited to IE browser.

    Comment

    • Prasadsm
      New Member
      • Nov 2008
      • 14

      #3
      Thanks for ur reply ssnaik.

      can you elaborate how can i use ActiveX Object. If any code,,it helps me.

      Comment

      • ssnaik84
        New Member
        • Aug 2009
        • 149

        #4
        While googling I found one link, here it is.
        Just google for ActiveX Articles.

        Comment

        • Frinavale
          Recognized Expert Expert
          • Oct 2006
          • 9749

          #5
          You should not be accessing the client's system.

          ActiveX controls will let you break this rule but it is not advisable to do this. ActiveX controls can only be run in Internet Explorer (no other browser can support them) and they are blocked by default. Since ActiveX controls are able to access the client's computer they can do anything with the client's operating system. This means that ActiveX controls are considered highly suspicious since they are favoured by malicious websites. Even if the ActiveX control is not malicious in nature, they may open security holes just by existing on the client's computer.

          I highly recommend that you find another way to achieve what you are looking for. Accessing the client's operating system is not a good idea.

          -Frinny

          Comment

          • Prasadsm
            New Member
            • Nov 2008
            • 14

            #6
            Hi Frinny,

            Thanks for ur reply...is there any other method to sort this?
            i tried with the following code on button click.
            Code:
            Dim Myprocess As Process = New System.Diagnostics.Process
                    Myprocess.StartInfo.FileName = "c:\\windows\Notepad.exe"
                    Myprocess.Start()
                    Myprocess.WaitForExit()
            it works fine. but when you access the page from some other system, nothing works. :(
            why is it so?
            Last edited by Frinavale; Dec 9 '09, 02:08 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.

            Comment

            • Frinavale
              Recognized Expert Expert
              • Oct 2006
              • 9749

              #7
              The reason that works on your test system is because that code is being executed Server-Side.

              When you try to run that client side, NotePad will open on the server.

              Why do you want to open NotePad anyway?

              -Frinny

              Comment

              Working...