CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2004
    Posts
    8

    How to execute other Aplication?

    Hi all,
    In C++ I can execute a aplication with argument by : ::WinExec("A.exe "+ strArgument, SW_SHOW);
    but I don't know in C#. Please help me!

    Waiting for your help! Thanks

    Thao Pham

  2. #2
    Join Date
    Dec 2003
    Location
    http://map.search.ch/zuerich.en.html
    Posts
    1,074

    Re: How to execute other Aplication?

    Process.Start("A.exe");
    Useful? Then click on (Rate This Post) at the top of this post.

  3. #3
    Join Date
    Jul 2004
    Posts
    45

    Re: How to execute other Aplication?

    To start a process using command line parameters, You can use Process.Start's overloaded method that takes ProcessStartInfo class's instance, or the one that takes two parameters one is the filePath and second, the command lind arguments. Please have a look at MSDN for Process.Start method.
    Maqsood Ahmed - MCAD.net
    Kolachi Advanced Technologies
    http://www.kolachi.net/web/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured