1

I have c# .net (winforms) program with button. I also have another console program in c++ (it takes as argument text file and change it). I wand to something like that: I press button (in c# program is stored path to txt file), the C++ program is executed but user dont see it (i dont want open for example command line in new window). Is it possible to do something like that?

0

1 Answer 1

6

Maybe, you should have a look at the Process.Start() method: http://msdn.microsoft.com/en-us/library/0w4h05yb.aspx

In the ProcessStartInfo you can pass to this method, you can specify that no window should be opened.

Process.Start(new ProcessStartInfo(pathToExeFile)
{
    CreateNoWindow = true,
    UseShellExecute = false,
    // ...
});
Sign up to request clarification or add additional context in comments.

Comments

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.