public class OpenExe extends HttpServlet { //打开本地播放器并播放视频 public static void openExe(String file) { Runtime rn = Runtime.getRuntime(); Process p = null; try { p = rn.exec("D:/The entertainment software/QvodPlayer/QvodPlayer.exe "+file); } catch…
1.打开浏览器 最简单的方法: const cp = require('child_process') cp.exec('start http://127.0.0.1:8889/'); // 自动打开默认浏览器 另一种方法是安装open依赖包: const open = require('open'); (async () => { // Opens the image in the default image viewer and waits for the opened app to qui…