Click here to Skip to main content
15,356,094 members
Home / Discussions / C#
   

C#

 
GeneralRe: Loosley Coupled Events Pin
SledgeHammer015-Sep-12 11:53
MemberSledgeHammer015-Sep-12 11:53 
GeneralRe: Loosley Coupled Events Pin
Member 81371055-Sep-12 11:56
MemberMember 81371055-Sep-12 11:56 
GeneralRe: Loosley Coupled Events Pin
SledgeHammer015-Sep-12 12:05
MemberSledgeHammer015-Sep-12 12:05 
GeneralRe: Loosley Coupled Events Pin
Member 81371055-Sep-12 12:18
MemberMember 81371055-Sep-12 12:18 
GeneralRe: Loosley Coupled Events Pin
SledgeHammer015-Sep-12 12:23
MemberSledgeHammer015-Sep-12 12:23 
GeneralRe: Loosley Coupled Events Pin
Member 81371055-Sep-12 12:51
MemberMember 81371055-Sep-12 12:51 
GeneralRe: Loosley Coupled Events Pin
Member 81371056-Sep-12 6:50
MemberMember 81371056-Sep-12 6:50 
Questionproblem executing console application Pin
dcof5-Sep-12 9:21
Memberdcof5-Sep-12 9:21 
I am trying to have a new C# 2010 console application execute an existing C# 2008 console application using the following code:
 using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
 using System.Diagnostics;
 using System.ComponentModel; 
namespace ClientScripts
 {
     class RunRPT
     {
         static void Main(string[] args)
         {
             Process e_Process = new Process();
 
            try
             {
                 e_Process.StartInfo.UseShellExecute = false;
                 e_Process.StartInfo.FileName = "C:\\eclient\\bin\\Debug\\Eclient.exe encriptvalue";
                 eRPT_Process.StartInfo.Arguments = "http://test1 1 SUB";
                 eRPT_Process.Start();
                
            }
             catch (Exception e)
             {
                 Console.WriteLine(e.Message);
             }
         }
     }
 }

I am getting the following error message: {System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at system.Diagnostics.Process.Start().

The console app that I am trying to call does run from a dos prompt command if you are in the correct directory running the following command:
Start .\eclient\bin\Debug\Eclient.exe encriptvalue http://test1 1 SUB

Thus can you tell me what parameters I would need to change in the process class for this execute to work? If you have any other ideas I can use to make this work, can you tell me what they would be?
AnswerRe: problem executing console application Pin
Pete O'Hanlon5-Sep-12 9:28
mvaPete O'Hanlon5-Sep-12 9:28 
GeneralRe: problem executing console application Pin
Wes Aday5-Sep-12 9:53
professionalWes Aday5-Sep-12 9:53 
GeneralRe: problem executing console application Pin
Pete O'Hanlon5-Sep-12 10:31
mvaPete O'Hanlon5-Sep-12 10:31 
QuestionMS SQL to Remote path Pin
Warren Machanik5-Sep-12 6:57
MemberWarren Machanik5-Sep-12 6:57 
AnswerRe: MS SQL to Remote path Pin
Dave Kreskowiak5-Sep-12 7:36
mveDave Kreskowiak5-Sep-12 7:36 
GeneralRe: MS SQL to Remote path Pin
Warren Machanik5-Sep-12 9:11
MemberWarren Machanik5-Sep-12 9:11 
GeneralRe: MS SQL to Remote path Pin
Dave Kreskowiak5-Sep-12 12:38
mveDave Kreskowiak5-Sep-12 12:38 
GeneralRe: MS SQL to Remote path Pin
Warren Machanik5-Sep-12 18:35
MemberWarren Machanik5-Sep-12 18:35 
GeneralRe: MS SQL to Remote path Pin
Dave Kreskowiak5-Sep-12 19:17
mveDave Kreskowiak5-Sep-12 19:17 
AnswerRe: MS SQL to Remote path Pin
Bernhard Hiller5-Sep-12 21:29
MemberBernhard Hiller5-Sep-12 21:29 
AnswerRe: MS SQL to Remote path Pin
Warren Machanik6-Sep-12 0:41
MemberWarren Machanik6-Sep-12 0:41 
Questiondebug console application Pin
dcof5-Sep-12 6:47
Memberdcof5-Sep-12 6:47 
AnswerRe: debug console application Pin
Pete O'Hanlon5-Sep-12 6:58
mvaPete O'Hanlon5-Sep-12 6:58 
GeneralRe: debug console application Pin
dcof5-Sep-12 7:58
Memberdcof5-Sep-12 7:58 
GeneralRe: debug console application Pin
Pete O'Hanlon5-Sep-12 8:09
mvaPete O'Hanlon5-Sep-12 8:09 
AnswerRe: debug console application Pin
Dave Kreskowiak5-Sep-12 7:32
mveDave Kreskowiak5-Sep-12 7:32 
GeneralRe: debug console application Pin
dcof5-Sep-12 8:02
Memberdcof5-Sep-12 8:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.