Click here to Skip to main content
15,906,467 members
Home / Discussions / C#
   

C#

 
AnswerRe: Session, Cache or Viewstate? Pin
mr.mohsen14-Sep-07 11:38
mr.mohsen14-Sep-07 11:38 
QuestionWhich interface to use to select the whole page for search? Pin
Ahmad Zaidi14-Sep-07 10:27
Ahmad Zaidi14-Sep-07 10:27 
QuestionUsing Process Start Pin
TheJudeDude14-Sep-07 9:41
TheJudeDude14-Sep-07 9:41 
AnswerRe: Using Process Start Pin
Pete O'Hanlon14-Sep-07 10:33
mvePete O'Hanlon14-Sep-07 10:33 
GeneralRe: Using Process Start Pin
TheJudeDude14-Sep-07 10:36
TheJudeDude14-Sep-07 10:36 
GeneralRe: Using Process Start Pin
TheJudeDude14-Sep-07 10:45
TheJudeDude14-Sep-07 10:45 
GeneralRe: Using Process Start Pin
Giorgi Dalakishvili14-Sep-07 11:14
mentorGiorgi Dalakishvili14-Sep-07 11:14 
AnswerRe: Using Process Start Pin
Nathan Holt at EMOM14-Sep-07 10:45
Nathan Holt at EMOM14-Sep-07 10:45 
TheJudeDude wrote:
Hi All. I am trying to use process.start but I am getting a file not found exception.
Here is the code - I broke it down to try and find out where the error was:

strArgs = DateTime.Now.AddMonths(-1).ToShortDateString();
strArgs = strArgs.PadLeft(10,'0');
strArgs = strArgs.Remove(2,4);
file = file.PadLeft(2,'0');
strArgs = " d:\\EOM\\EOM" + file + strArgs + ".ZIP";
path = " d:\\eom\\" + file + "\\*.m*";
strArgs = strArgs + path;
strArgs = "c:\\Progra~1\\Winzip\\wzzip.exe " + strArgs; 
myProcess.StartInfo.FileName = strArgs; 
myProcess.StartInfo.CreateNoWindow = true;
try
{
  blTest = myProcess.Start();
}
catch (SystemException caught)
{
  Console.WriteLine(caught.ToString());
}


From reading the documentation, it looks to me like StartInfo.FileName should just contain
"c:\\Program Files\\Winzip\\wzzip.exe"
and the rest of the arguments should be put in StartInfo.Arguments

Nathan
GeneralRe: Using Process Start Pin
TheJudeDude14-Sep-07 10:53
TheJudeDude14-Sep-07 10:53 
GeneralRe: Using Process Start Pin
Giorgi Dalakishvili14-Sep-07 11:16
mentorGiorgi Dalakishvili14-Sep-07 11:16 
GeneralRe: Using Process Start Pin
TheJudeDude14-Sep-07 11:21
TheJudeDude14-Sep-07 11:21 
GeneralRe: Using Process Start Pin
Giorgi Dalakishvili14-Sep-07 11:30
mentorGiorgi Dalakishvili14-Sep-07 11:30 
GeneralRe: Using Process Start Pin
TheJudeDude14-Sep-07 14:39
TheJudeDude14-Sep-07 14:39 
GeneralRe: Using Process Start Pin
Giorgi Dalakishvili14-Sep-07 22:53
mentorGiorgi Dalakishvili14-Sep-07 22:53 
Questionhow to playBack streaming video ? Pin
hdv21214-Sep-07 9:18
hdv21214-Sep-07 9:18 
AnswerRe: how to playBack streaming video ? Pin
Dave Kreskowiak14-Sep-07 9:27
mveDave Kreskowiak14-Sep-07 9:27 
GeneralRe: how to playBack streaming video ? Pin
hdv21214-Sep-07 11:15
hdv21214-Sep-07 11:15 
QuestionBreak Points in my Custom Attribute class Pin
Sha Sea14-Sep-07 7:26
Sha Sea14-Sep-07 7:26 
AnswerRe: Break Points in my Custom Attribute class Pin
Nathan Holt at EMOM14-Sep-07 10:56
Nathan Holt at EMOM14-Sep-07 10:56 
GeneralRe: Break Points in my Custom Attribute class Pin
Sha Sea14-Sep-07 11:33
Sha Sea14-Sep-07 11:33 
GeneralRe: Break Points in my Custom Attribute class Pin
Nathan Holt at EMOM14-Sep-07 12:17
Nathan Holt at EMOM14-Sep-07 12:17 
QuestionForce file delete Pin
jmaalouly14-Sep-07 5:42
jmaalouly14-Sep-07 5:42 
AnswerRe: Force file delete Pin
Giorgi Dalakishvili14-Sep-07 6:35
mentorGiorgi Dalakishvili14-Sep-07 6:35 
AnswerRe: Force file delete Pin
Dave Kreskowiak14-Sep-07 8:10
mveDave Kreskowiak14-Sep-07 8:10 
GeneralRe: Force file delete Pin
Paul Conrad14-Sep-07 18:56
professionalPaul Conrad14-Sep-07 18:56 

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.