I have a requirement to call 4 vb script files(.vbs) one by one to execute few excel macros.lets say if i click on start button, it will trigger 1st .vbs task and once the 1st .vbs complete then it should move to 2nd .vbs call and it goes on. These all should be triggered by a single button click in web UI. How i can achieve this using nodejs? I have found this below package(using CMD) in the internet but i could not proceed how to achieve this with POST method using submit button and execute vbs files one by one.
const nodeCmd = require('node-cmd');
app.post('/', function (req, res) {
res.sendFile(__dirname + '/progress.html');
callvbs();
});
function callvbs()
{
nodeCmd.get('callvbs.vbs');
console.log('file created....');
}