After the nodejs http get interface downloads the exe file, sometimes the exe file is not executable (exe is occupied)?

  node.js, question

这个时候文件是没法执行的,依旧被程序占用

In most cases, this problem will not occur. After downloading, you can see the exe icon and it can be executed.

The following is the code to execute exe

var exec = require('child_process').exec;
 exec(exePath, function(er,data){ });

Close 360 …