Ver Mensaje Individual
  #3  
Antiguo 14-03-2011
Paulao Paulao is offline
Miembro
 
Registrado: sep 2003
Ubicación: Rua D 31 Casa 1 - Inhoaíba - Rio de Janeiro - RJ - Brasil
Posts: 637
Reputación: 21
Paulao Va por buen camino
Hizo asi, pero me lo da un error: cannot Open file"192.168.1.109\Teste\MyPicture\nombre_archivo.tif"
Abajo mis codigos. Lo que no estas cierto? Gracias a todos!!!

Código Delphi [-]
procedure TCopiaStream.FileCopy(const sourcefilename, targetfilename: String);
Var
 S, T: TFileStream;
begin
   S := TFileStream.Create( sourcefilename, fmOpenRead );
 try
   T := TFileStream.Create( targetfilename, fmOpenWrite or fmCreate );
   try
     T.CopyFrom(S, S.Size ) ;
   finally
     T.Free;
   end;
 finally
   S.Free;
 end;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Path_or := '\\192.168.1.109\teste\My Pictures\1912-11 1 NOVEMBRO - 31 DEZEMBRO\*.tif';
  Path_de := '\\192.168.1.109\teste\My Pictures\Destino\';
  vStream := TCopiaStream.Create(path_or,path_de);
end;
Responder Con Cita