I have a .bat file with multiple lines. Each line corresponds to a different process. I could find a way to run the whole .bat file via javascript. What I really want to do is run each line/process given in the .bat file find the time it takes to execute each process. Can someone help me, please?
This is the code I use to run the whole .bat file
function loadTime() {
    var exec = require('child_process').exec;
    exec('C:\\Temp\\tasks\\acis\\runme.bat', function(error, stdout, stderr) {
        console.log('stdout: ' + stdout);
        if (error !== null) {
            console.log('exec error: ' + error);
        }
    });
}
 
    