Helllo all,
I have a very important question and i really need a answer.....please help...
i want to write a batch script in windows which can run all mongoDB queries such as creating a databse, creating a collection and inserting and deleting etc. automatically.....i have searched references like hell, but have'nt found anything,
I have written script for starting the database, from batch file...hre it is...
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
##setting the path for java as well as mongoDB variables.
set path=C:\Program Files\Java\jdk1.8.0_71\bin;C:\Program Files\Java\jdk1.8.0_71;C:\Program Files\MongoDB\Server\3.2\bin
pause
start mongod --config C:\data\mongo.config --dbpath C:\data\db
pause
start mongo
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
i want another script another script, which can run all other queries........please help me here......i really need it...
if possible, can you show me some sample scripts to do that................
Thank you.