javascript - 如何运行 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>
解决方案
推荐阅读
- angular - setRowData 在第一次调用 Angular 6 时不起作用
- node.js - 书架中的SQL过滤器查询作为nodejs中的Laravel
- python - 使用 Python collections.namedtuple 制作具有干净界面的 DTO?
- linux - Diff 命令停止执行 shell 脚本
- react-native - Flatlist 覆盖具有绝对位置的 a 元素
- matlab - MATLAB 时间序列回归,处理 NaN
- oracle - Oracle 上的 SHA-512
- scenebuilder - 使用 Scenebuilder 在 Java 中隐藏复选框
- python - 如何在python中添加列表的总和
- sql-server - sql server 如何分隔全名