node.js - nodejs child_process.exec 如果所执行的命令包含空格该怎么转码?
怪我咯
怪我咯 2017-04-17 13:07:45
0
0
771
            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"↵䌧尺牐杯慲❭눠쪻쓇닚뮿췲닢쎿쇼ꏮ튬늲쪻뿇퓉탋뗐도탌ෲ묊엲듺삦컭별ꇾඣ"

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template