简体   繁体   中英

How can I make html open a lua file or open a exe?

I need to know if I can make a html file open a lua file, like open it with the default program the computer is set to open those files with. (Alternatively could I say "Open this file with this .exe" and I can just have the exe be the program I have set to open lua files with.) This is what I have, it opens it like a text file though.

<html>
    <head>
        <title>
            MaGa
        </title>
    </head>
    <body>
        <a href=".\MaGa.html" target="_self">Go to MaGa</a>
        <a href=".\MaGa.lua" target="_self">Open MaGa</a>
    </body>
</html>

local website with IE

start.bat

start lua myfile.lua

start.html

<a href="start.bat">start</a>

Remove Internet Explorer Open or Save Popup:

https://jwcooney.com/2014/03/31/remove-internet-explorer-open-or-save-popup/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM