coreybutler/node-windows

Unable to execute child process

Open

#270 建立於 2020年8月14日

在 GitHub 查看
 (7 留言) (0 反應) (0 負責人)JavaScript (367 fork)github user discovery
help wanted

倉庫指標

Star
 (2,931 star)
PR 合併指標
 (PR 指標待抓取)

描述

I have a created a windows service using node-windows and it seems to work properly. But as soon as I have my child process call it does not execute my child process and if i switch to running it from cmd instead as a service it opens my executable. This is nothing related to type of user as i only have one user as administrator Below is my code

Tried using spawn const command = 'jre-8u261-windows-x64.exe' const bat = spawn(command, [],{ shell: true, // use to run in a shell if you need detached: true, // important stdio: "ignore", });

Using exec: const test = exec('jre-8u261-windows-x64.exe' ); Please suggest

貢獻者指南