[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

How to call a process to run in the background

Hi all,

Im trying to run another executable from my exe.  How do I call it from my exe so that the focus will remain in my exe and not be transferred to the executable being called?
I call the exe using the Process.Start() method.

Thanks in advance.
Any help would be highly appreciated.

3Mann
0
3Mann
Asked:
3Mann
1 Solution
 
ThaloxCommented:

You can use the ProcessStartInfo to run your app hidden.

...
System.Diagnostics.ProcessStartInfo ProcInfo = new ProcessStartInfo(command, parameters);
System.Diagnostics.Process proc = new System.Diagnostics.Process();

ProcInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
proc.StartInfo = ProcInfo;
proc.Start();
...


Hope this helps,

Thalox
0
 
3MannAuthor Commented:
#-o just the one i was looking for :D
Thanks
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now