getting results from console aplication
-
Hey, I want to make a frontend for application that allready exists, and make it more userfriendly. Like for instance, many applications work with LAME.exe and/or LAME.dll. My questions are: a) How do I best send parameters to these exe's? Plain usage and use System-call on exe with added parameters??? (no idea, just a guess) b) All those other applications that use an exe, never make the exe 'pop-up', while I was thinking to use a System-call, and send parameters to the exe. That would open it (and a doslike window) and inject the parameters to the now open exe. But with a window visible. How else could it be done? b2) Can I internally link the exe in my project, so it works like a process in the background, and my GUI awaits an ending state of the process running in teh background? Is that possible and how it should be done in a neat way? Some pointers or things to look for are enough, I don't want entire pieces of code. As a beginner, I just don't know where to start, that's all.
-
Hey, I want to make a frontend for application that allready exists, and make it more userfriendly. Like for instance, many applications work with LAME.exe and/or LAME.dll. My questions are: a) How do I best send parameters to these exe's? Plain usage and use System-call on exe with added parameters??? (no idea, just a guess) b) All those other applications that use an exe, never make the exe 'pop-up', while I was thinking to use a System-call, and send parameters to the exe. That would open it (and a doslike window) and inject the parameters to the now open exe. But with a window visible. How else could it be done? b2) Can I internally link the exe in my project, so it works like a process in the background, and my GUI awaits an ending state of the process running in teh background? Is that possible and how it should be done in a neat way? Some pointers or things to look for are enough, I don't want entire pieces of code. As a beginner, I just don't know where to start, that's all.
You will be able to get what you need if you use Process class. a)You can set Arguments property of ProcessStartInfo instance and then pass it to Process instance b)You can specify Hidden for WindowStyle property of ProcessStartInfo or set CreateNoWindow property to true c)I don't know what you mean by linking but if you start process by using Process class then you can retrieve its output if you set ProcessStartInfo's RedirectStandardOutput property to true
#region signature my articles #endregion