locked
How to start a windows application from a browser link?  RRS feed

  • Question

  • User-1170746074 posted

    Dear Sir

    I would like to start a public windows application from a client side browser link. I don't know where and what fold the client side windows application stay at. I am not sure if the simple application name.exe can start the windows application.

    Thanks in advance

    Wednesday, September 6, 2017 10:16 PM

Answers

  • User347430248 posted

    Hi jimmywang918,

    you can try something like below.

    <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
        
    <script>
        function LaunchApp() {
    
            var ws = new ActiveXObject("WScript.Shell");
            ws.Exec("C:\\Windows\\notepad.exe");
        }
    </script>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <a href="javascript:LaunchApp()">Launch the executable</a>
        </div>
        </form>
    </body>
    </html>
    

    or you can try to use the approach mentioned in the link below.

    How to run a desktop application from a web page!

    Regards

    Deepak

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 7, 2017 6:43 AM

All replies

  • User347430248 posted

    Hi jimmywang918,

    you can try something like below.

    <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
        
    <script>
        function LaunchApp() {
    
            var ws = new ActiveXObject("WScript.Shell");
            ws.Exec("C:\\Windows\\notepad.exe");
        }
    </script>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <a href="javascript:LaunchApp()">Launch the executable</a>
        </div>
        </form>
    </body>
    </html>
    

    or you can try to use the approach mentioned in the link below.

    How to run a desktop application from a web page!

    Regards

    Deepak

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 7, 2017 6:43 AM
  • User-1170746074 posted

    Hi Deepak,

    Thank you very much!

    Best Regards

    Jimmy

    Friday, September 8, 2017 7:09 AM