首页 > 解决方案 > 如何运行 cmd 并使用 javascript 编写 commandsr

问题描述

所以我想使用javascript节点js或电子js打开cmd并编写一些命令并执行它们我该怎么做?提前谢谢你

     <!DOCTYPE html>
<html lang="en">
<head>
    <title>Document</title>
</head>
<body>
    <h1>vedios infos </h1>
    <input type="file" accept="video/*">
    <script>
        shell.run("%windir%\system32\cmd.exe");

    </script>
    
    
</body>
</html>

标签: javascriptnode.jselectron

解决方案


推荐阅读