how to run a batch file in Node.js with input and get an output

In perl if you need to run a batch file it can be done by following statement.

system “tagger.bat < input.txt > output.txt”;

here tagger.bat is a batch file, input.txt is the input file and output.txt is the output file.

I like to know can it be done in Node.js and how ?

whether it is possible or not ?

Source: windows

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.