Exception in initAndListen: NonExistentPath: Data directory C:\data\db\ not found., terminating on windows

Solution:

mongod --dbpath "C:\Program Files\MongoDB\Server\4.0\data"