-
launching own application using System.Diagnostics
Hi,
I am trying to launch an application using System.diagnostics.Process.Start. Intaillay , I tried to launch Explorer.exe, with the following code:-
System.Diagnostics.ProcessStartInfo exp = new System.Diagnostics.ProcessStartInfo();
exp.FileName = " explorer.exe ";
System.Diagnostics.Process.Start(exp);
This code launched explorer.exe. My question is how does start() method knows Were the “explorer.exe” application is reciding in my system?.
Because, I was trying to launch my own window application called “copy_prj.exe” and I think, I need to tell the above program were it can find it, I mean the path to that “copy_prj.exe” application.
Say for example, my windows application (“copy_prj.exe” )is located in:-
"C:\\perforce\\AVC\\release_branches\\ER4\\AVCSDK\\bin"
How can I tell the above program to launch my windows application?. Do I need to set “EnvironmentVariables” property?. If, so can you give me an example.
Thanks,
Similar Threads
-
Replies: 0
Last Post: 06-15-2005, 07:31 PM
-
By Krishna in forum vb.announcements
Replies: 0
Last Post: 11-25-2002, 11:03 PM
-
By Marco Losavio in forum .NET
Replies: 0
Last Post: 08-22-2002, 09:49 AM
-
By John Rodrick in forum Open Source
Replies: 0
Last Post: 12-12-2001, 05:48 PM
-
By Ian Drake in forum .NET
Replies: 1
Last Post: 11-21-2001, 01:22 PM
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
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|