2017-05-31 21 views

回答

0

出於某種原因,child_process spawn沒有運行命令,所以我換出來了exec這樣的:

exec(updateExe + ' ' + args[0], function (err, stdout, stderr) { 
    done(); 
}); 

但我需要把雙引號圍繞目標,以及因爲它有兩個詞:

run(['--createShortcut="' + target + '" --process-start-args=showSplash'], app.quit); 
相關問題