How to call a process to run in the background

Posted on 2004-11-08
Last Modified: 2010-04-15
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.

Question by:3Mann
    LVL 9

    Accepted Solution


    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;

    Hope this helps,

    LVL 1

    Author Comment

    #-o just the one i was looking for :D

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now