title: Cannot start mongodb network service on Windows 10 after changing dbPath of config file
body: <p>I have installed mongodb 4.2 on my Windows 10 PC. I want to change the <code>dbPath</code> from default <code>C:\Program Files\MongoDB\Server\4.2\data</code> to <code>C:\Users\xx\Dropbox\mongodb_data</code>.</p>
  
  <p>I modifed mongod.cfg such that
  <code>dbPath: C:\Users\xx\Dropbox\mongodb_data</code></p>
  
  <p>When I restart Mongodb network service, I encountered the following error;</p>
  
  <p><a href="https://i.stack.imgur.com/9wlt4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9wlt4.png" alt="enter image description here"></a></p>
  
  <p>How can I fix this error?</p>