Run EXE from client side

后端 未结 7 1204
醉梦人生
醉梦人生 2020-12-03 23:58

I need run an exe file from client side. The Exe file exist in my C:\\ Directory. I need run this exe file from my WEB site.

How can I co this?

7条回答
  •  有刺的猬
    2020-12-04 00:25

    Put your entire application in a DLL library, upload it to some static IP address server and read about WebDAV technology. All you need is a small DLL loader that will load the library from the network. It's all built-in windows since Win2000 if i remember correctly.

    It works like this, in import table you specify IP address and web resource from where you want to load your library (usualy it's filled with stuff like KERNEL32.dll USER32.dll etc.)

    So you need to patch your exe loader and change your library name from eg.

    MYLIB.dll to

    \xxx.xxx.xxx.xxx\MYLIB (no extension required)

    where xxx is the static IP address (doesn't work with the hostname). Windows will take care of the rest :)

    Have fun.

提交回复
热议问题