Results 1 to 4 of 4

Thread: How can I execute an external app ? (resolved)

  1. #1

    Thread Starter
    Hyperactive Member Jlarini's Avatar
    Join Date
    Jan 2002
    Location
    São Paulo, Brazil
    Posts
    263

    Resolved How can I execute an external app ? (resolved)

    Hi, there!

    I need to execute an application from my C# program, but I have no clue how to do that...

    I want to execute, say, "winrar", with all the parameters needed...

    How can I do it ?

    Tks in advance,

    João Luiz
    Last edited by Jlarini; Dec 13th, 2007 at 06:53 AM.
    nothing is impossible, it's sometimes very hard to do!

    If your thread is solved... Please edit it and add [Resolved] or [Solved] on it!

    If you like Marine aquarium, feel free to PM me.

    Sorry my bad English

    God bless Parksie!

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: How can I execute an external app ?

    C# Code:
    1. System.Diagnostics.Process.Start(pathToExe);
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3

    Thread Starter
    Hyperactive Member Jlarini's Avatar
    Join Date
    Jan 2002
    Location
    São Paulo, Brazil
    Posts
    263

    Re: How can I execute an external app ?

    Hi, Atheist!

    You are so faster!!!

    I've tried it, while I'm waiting an answer...

    Code:
    Process.Start("C:\\Arquivos de Programas\\WinRar\\Winrar.exe x 
    e:\\Paper_Clock.rar *.* e:\\tester\\")
    I received this exception message:

    Code:
    System.ComponentModel.Win32Exception:The system couldn't found the specified file
    If I try:
    Code:
    Process.Start("C:\\Arquivos de Programas\\WinRar\\Winrar.exe")
    It works pretty good....

    []s

    João Luiz
    nothing is impossible, it's sometimes very hard to do!

    If your thread is solved... Please edit it and add [Resolved] or [Solved] on it!

    If you like Marine aquarium, feel free to PM me.

    Sorry my bad English

    God bless Parksie!

  4. #4

    Thread Starter
    Hyperactive Member Jlarini's Avatar
    Join Date
    Jan 2002
    Location
    São Paulo, Brazil
    Posts
    263

    Resolved Re: How can I execute an external app ? (Resolved)

    Atheist,

    I got it!!!

    Code:
    Process.Start("C:\\Arquivos de Programas\\WinRar\\Winrar.exe" ,  
    " x e:\\Paper_Clock.rar *.* e:\\tester\\").WaitForExit();
    []s

    João Luiz
    nothing is impossible, it's sometimes very hard to do!

    If your thread is solved... Please edit it and add [Resolved] or [Solved] on it!

    If you like Marine aquarium, feel free to PM me.

    Sorry my bad English

    God bless Parksie!

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