0

I am not able to import csv file into mongodb database. I am using windowsXP 32-bit machine. I am using mongoimport --db IPL --collection matches --file C:\Users\Todkar\Desktop\Cambium Networks Full Stack Hiring Challenge\matches.csv

I am getting error cannot find path specified in OS shell. see screenshot for more clarification.

enter image description here

2
  • Is file exists on that directory? Commented Jan 20, 2018 at 8:44
  • @Saravana yes it is imgur.com/a/RrWrd Commented Jan 20, 2018 at 8:51

1 Answer 1

1

case is where the path involves the use of white space characters, for example, when you need to access the app xyz which location is :

C:\Program Files\ab cd\xyz.exe.

To run this from windows cmd prompt, you need to use

C:\"Program Files"\"ab cd"\xyz.exe

OR

"C:\Program Files\ab cd\xyz.exe"
Sign up to request clarification or add additional context in comments.

2 Comments

I need to use this command from OS shell I need to navigate to C:\ProgramFiles\MongoDB\bin where mongoimport utility is there am I right ?
you want to use file specified in --file C:\Users\Todkar\Desktop\Cambium Networks Full Stack Hiring Challenge\matches.csv that contains space. but in screenshot your using it without space that does not exists --file C:\Users\Todkar\Desktop\CambiumNetworksFullStackHiringChallenge\matches.csv

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.