I need to run the mongoDBD command from mongoDB via code but it is not right:
'pro.FileName = "cmd.exe";
//pro.UseShellExecute = false;
pro.Arguments = @"/k cd C:\Program Files\MongoDB\Server.4\bin\";
Process proStart = new Process();
proStart.StartInfo = pro;
proStart.Start();
I need to run the mongoimport inside the bin, but I can not.
Can anyone give a help?