How to run exe on a client on a web browser without using ActiveX

Asked 1 years ago, Updated 1 years ago, 55 views

I'm looking for a way to run an exe file on my client PC, e.g. C:/Windows/System32/calc.exe. I searched online and found many ways to use ActiveX, but ActiveX is not supported by Edge, so I'm looking for a way not to use ActiveX.

Simply

<html><head>/head>
    <body>
        <a href="file:///C:/Windows/System32/calc.exe">Calculator</a>
    </body>
</html>

It doesn't work as well.

I know it's a security issue to start the client exe.
Is there any easy way?

windows browser

2022-09-30 18:57

1 Answers

For security reasons, there is no way to launch any EXE.
Alternatively, if the URI is registered in the registry on the target PC, you can start EXE according to your registration.

For example,

HKEY_CLASSES_ROOT\note
URL Protocol="
HKEY_CLASSES_ROOT\note\shell\open\command
(Default) = "C:\Windows\notepad.exe"

and registry registration.

<a href="note:">notepad</a>

Boot to the .


2022-09-30 18:57

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.