T
T
tac2012-05-26 15:04:06
MongoDB
tac, 2012-05-26 15:04:06

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

2 answer(s)
X
XimikS, 2012-05-26
@tac

 var prc = new System.Diagnostics.ProcessStartInfo("path") {
                CreateNoWindow = true;
                WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
}
                System.Diagnostics.Process.Start(prc);

try, I wrote from memory.

M
maratfmu, 2012-05-26
@maratfmu

They have a description on their site of how to run the server as a service

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question