I am using this batch script:
mongo.exe mydb < D:\TFX\Delta\script.txt
in which script.txt contains mongodb commands to execute but on running the batch file it only runs the command written in single line and throwing error for commands written in multiple lines so, I need solution to run commands written in multiple lines.
mongo.exe mydb D:\TFX\Delta\script.txt- however the script must have extension.jsinstead of.txt