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 …