|
-
Dec 12th, 2007, 01:53 PM
#1
Thread Starter
Hyperactive Member
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.
-
Dec 12th, 2007, 02:09 PM
#2
Re: How can I execute an external app ?
C# Code:
System.Diagnostics.Process.Start(pathToExe);
-
Dec 12th, 2007, 02:25 PM
#3
Thread Starter
Hyperactive Member
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
-
Dec 12th, 2007, 03:02 PM
#4
Thread Starter
Hyperactive Member
Re: How can I execute an external app ? (Resolved)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|