I have written a simple service which is now active on my windows services. My problem is that I cannot access the cmd through the windows services. I am using nodejs express for my service, node-cmd
for the cmd access & node-windows
to create the service. My app does this:
app.get('/check', (req, res) => {
cmd.run('start chrome');
res.status(200).send('The server is working correctly :)');
});
For those of you that don't understand this, it basically means:
Listen for the GET '.../check' call, then do:
cmd: start chrome
return response 'The server is working correctly :)'
When I run this manually, then it starts chrome. When I use it as a windows services, then it doesn't start chrome but it DOES resond with The server is working correctly :)
For some reason, cmd command are not working in windows services?