Answer the question
In order to leave comments, you need to log in
How to start MongoDB server without console window
I'm trying to work with MongoDB, and I would like it to be transparent to the user. But when programmatically launching the MongoDB server (mongod.exe) - it launches a console window. How to run without it, or hide this server console window. I work in C#.
Answer the question
In order to leave comments, you need to log in
var prc = new System.Diagnostics.ProcessStartInfo("path") {
CreateNoWindow = true;
WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
}
System.Diagnostics.Process.Start(prc);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question