nodejs调用外部exe执行程序


方法一:

const child = require('child_process')

child.exec(`${path路径}`, (err, stdout, stderr) => {
    console.log(err, stdout, stderr)

 })

方法二:

 

参考1:https://blog.csdn.net/summer721066/article/details/107856662

参考2:https://cloud.tencent.com/developer/ask/87564

参考3:nodejs call external exe and wait for output:https://stackoverflow.com/questions/34538825/node-js-call-external-exe-and-wait-for-output


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM