cari

Rumah  >  Soal Jawab  >  teks badan

node.js - nodejs child_process.exec 如果所执行的命令包含空格该怎么转码?

            var exec = window.require('child_process').exec;
            var exePath = 'C:\\Program Files (x86)\\捷宇高拍仪\\捷宇高拍仪.exe'
            var ls = exec(exePath, function(er,data){ 
                console.log(er)
            });

报错信息如下:
"Command failed: C:\Windows\system32\cmd.exe /s /c "C:\Program Files (x86)\捷宇高拍仪\捷宇高拍仪.exe"↵䌧尺牐杯慲❭눠쪻쓇닚뮿췲닢쎿쇼ꏮ튬늲쪻뿇퓉탋뗐도탌ෲ묊엲듺삦컭별ꇾඣ"

怪我咯怪我咯2779 hari yang lalu767

membalas semua(0)saya akan balas

Tiada jawapan
  • Batalbalas