title: Unable to restore bson file to mongodb in windows machine
body: <p>I am new to <code>mongo</code> and trying to <code>restore/import</code> below <code>bson files</code> to mongo version <code>3.0.6</code>, </p>
  
  <p><a href="https://i.stack.imgur.com/0lP0R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0lP0R.png" alt="enter image description here"></a></p>
  
  <p>but when I am trying below option it's failing with following error: Please refer the screen shot. FYI - I'm running CMD as administrator.</p>
  
  <pre><code>C:\Program Files\MongoDB\Server\3.0\bin&gt;mongorestore -h localhost C:\dump\sampledb\
  2016-03-22T01:01:49.266+0530    building a list of dbs and collections to restore from C:\dump\sampledb dir
  2016-03-22T01:01:49.268+0530    don't know what to do with file "C:\dump\sampledb\categories.bson", skipping...
  2016-03-22T01:01:49.269+0530    don't know what to do with file "C:\dump\sampledb\customers.bson", skipping...
  2016-03-22T01:01:49.269+0530    don't know what to do with file "C:\dump\sampledb\employee-territories.bson", skipping...
  2016-03-22T01:01:49.270+0530    don't know what to do with file "C:\dump\sampledb\employees.bson", skipping...
  2016-03-22T01:01:49.271+0530    don't know what to do with file "C:\dump\sampledb\order-details.bson", skipping...
  2016-03-22T01:01:49.271+0530    don't know what to do with file "C:\dump\sampledb\orders.bson", skipping...
  2016-03-22T01:01:49.272+0530    don't know what to do with file "C:\dump\sampledb\products.bson", skipping...
  2016-03-22T01:01:49.272+0530    don't know what to do with file "C:\dump\sampledb\regions.bson", skipping...
  2016-03-22T01:01:49.273+0530    don't know what to do with file "C:\dump\sampledb\shippers.bson", skipping...
  2016-03-22T01:01:49.274+0530    don't know what to do with file "C:\dump\sampledb\suppliers.bson", skipping...
  2016-03-22T01:01:49.274+0530    don't know what to do with file "C:\dump\sampledb\system.indexes.bson", skipping...
  2016-03-22T01:01:49.275+0530    don't know what to do with file "C:\dump\sampledb\territories.bson", skipping...
  2016-03-22T01:01:49.275+0530    done
  
  C:\Program Files\MongoDB\Server\3.0\bin&gt;
  </code></pre>
  
  <p>Please guide. I've taken a help from link: <a href="https://stackoverflow.com/questions/12592305/mongodb-commands-from-dos-or-windows">MongoDB commands from DOS or Windows</a>, but solution worked for me so far. Please help.</p>