We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad2ac44 commit 1901c4eCopy full SHA for 1901c4e
startdb-no-auth.bat
@@ -1,6 +1,12 @@
1
-:PUBLIC
2
-@ECHO PUBLIC PATH
3
-start "" "C:\Program Files\MongoDB\Server\3.0\bin\mongod.exe" --dbpath "C:\Users\Public\mongodb\db"
+@ECHO off
+SET dbpath="C:\Users\Public\mongodb\db"
+if not exist %dbpath% (
4
+ echo %dbpath% directory does not exist. Creating...
5
+ mkdir %dbpath%
6
+ echo off
7
+)
8
+
9
+start "" "C:\Program Files\MongoDB\Server\3.6\bin\mongod.exe" --dbpath %dbpath%
10
GOTO END
11
-:END
12
+:END
0 commit comments