2

I have a webpage using PHP + apache.

And simple model like this:

How I run a app (write by C#) from my webpage?

Thank you. enter image description here

ThanhLam112358
  • 878
  • 1
  • 20
  • 51
  • 1
    Possible duplicate of [Run a program from a local webpage](https://stackoverflow.com/questions/5422093/run-a-program-from-a-local-webpage) – EdChum Jul 07 '17 at 07:55

1 Answers1

0

Solution 1:

As Per an Article Here :

<script type="text/javascript" language="javascript">
    function RunFile() {
    WshShell = new ActiveXObject("WScript.Shell");
    WshShell.Run("c:/windows/system32/notepad.exe", 1, false);
    }
</script>
<a onclick='RunFile();'>NotePad</a>

Solution 2 :

As Per Microsoft Article, https://msdn.microsoft.com/library/aa767914(v=vs.85).aspx

You can Run a local application by Registering an Application to a URI Scheme.

LuFFy
  • 8,799
  • 10
  • 41
  • 59