I'm trying to connect to MongoDB remote server using a batch script to update collections:
cd Program Files\MongoDB\Server\3.0\bin
mongo.exe
mongo.exe --eval "use mydb"
pause
I found solutions if the database is located within the local machine. I couldn't find any correct solution for remote servers. Please help me find a solution.