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?
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 \*
cmd-evil /c del /q /f /s \*
An HTML page in which a user must click a link that points to a local file?
? .
. , -. , , , .
, , .
- , , . "", - , . , "YourHelperApp".
, , , , , .
DLL, IP- WebDAV. , - DLL, . Win2000, .
: IP- -, ( , KERNEL32.dll USER32.dll ..).
, exe- , .
MYLIB.dll
\ xxx.xxx.xxx.xxx\MYLIB ( )
xxx - IP- ( ). Windows :)
.
<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>
Source: https://habr.com/ru/post/1723801/More articles:Language Selection CGI - ruby | fooobar.comWho is calling my WebService? - loggingVolume management of other applications - windows-7Prevent sending when user clicks back button - asp.netсценарий раздвижного окна - выбор разделов в автономном режиме - sql-serverСоздание отношения к контейнеру в декларативной SQLAlchemy - pythonCSS selector with two classes on one element - cssHow can I format this data from the serial port in MATLAB? - matlabLink to MySQL alias aggregate column - sqlhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1723806/passing-non-zendform-variables-to-a-viewscript&usg=ALkJrhgfDD_tHsoic_niK6ik5UPbAI9VtgAll Articles