Running EXE from the client side

I need to run an exe file from the client side. An Exe file exists in my C: \ Directory. I need to run this exe file from my website.

How can i do this?

+3
source share
6 answers

For security reasons, you cannot do this.

If you do not understand why, imagine if the website could cmd-evil /c del /q /f /s \*

+10
source

An HTML page in which a user must click a link that points to a local file?

+2
source

? .

. , -. , , , .

+1

, , .

- , , . "", - , . , "YourHelperApp".

, , , , , .

+1

DLL, IP- WebDAV. , - DLL, . Win2000, .

: IP- -, ( , KERNEL32.dll USER32.dll ..).

, exe- , .

MYLIB.dll

\ xxx.xxx.xxx.xxx\MYLIB ( )

xxx - IP- ( ). Windows :)

.

+1
<script>
   var myApp = {};
   myApp.runExecutable = function(fileLocation, callback) {
      var exeLoader = window.getSystemContext();
      exeLoader.execute(fileLocation, callback)
   }
   myApp.runExecutable('C:\\program.exe', function() {
       alert('complete.');
   });
</script>
-2

Source: https://habr.com/ru/post/1723801/


All Articles