I am looking for a way to stop a node.js's server from a batch file. For eg: I have a batch file called start.bat in which I am starting node.js server like this node c:\test.js, so this will start server on port 8080, similarly I would like to stop that test.js server from another batch file called stop.bat. How can I do this?
I tried looking into many similar questions in SO, but all of them uses start and stop from the same .js file.
So is this possible? If yes, can anyone guide me?