Hi All,
 Not sure if I sent this already.

I am trying to run a command using the TProcess class. I have included it in 
the uses process.

I have the code below

procedure TmainForm.StartCDS();
cmd:string;
AProcess:Tprocess;
begin
Aprocess:=TProcess.Create(nil);

cmd:='cd '+Dir+'/des/'+'v'+Rev+' ;startCDS.csh';
AProcess.CommandLine:=cmd;
Aprocess.Options:=Aprocess.Options+[poWaitOnExit];
AProcess.Execute;
AProcess.Free;
end;

I keep getting an error Project raised Exception class 'EProcess' with message 
Executable not found ""

Not sure what I am doing wrong.

Thanks

Lefti

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to