Ver Mensaje Individual
  #3  
Antiguo 21-09-2008
Avatar de MaMu
MaMu MaMu is offline
Miembro
 
Registrado: abr 2006
Ubicación: Argentina
Posts: 863
Reputación: 21
MaMu Va por buen camino
Cita:
Empezado por dec Ver Mensaje
Hola,

Duplicando la barra. Debes guardar algo como:

Código:
C:\\Archivos de programa\\Resto de\\La ruta\\
... si no me equivoco...
Mmm...
Se me ocurre una cosa asi:

Código Delphi [-]
function PathWindowsToMySQL(Path, PathWindows, PathMySql: String): String;
var  aPos: Integer;
begin
  aPos := Pos(PathWindows, Path);
   Result:= '';
   while (aPos <> 0) do 
     begin
       Result := Result + Copy(Path, 1, aPos-1) + PathMySql;
       Delete(Path, 1, aPos + Length(PathWindows)-1);
       aPos := Pos(PathWindows, Path);
     end;
     Result := Result+Path;
end;

Podria ser, no?

Y el llamado sería

Código Delphi [-]
Ruta:='C:\temporal\fotos\pepe.jpg';
MiRoot:=PathWindowsToMySQL(Ruta,'\','\\');

Saludos
__________________
Código Delphi [-]
 
try 
ProgramarMicro(80C52,'Intel',MnHex,True);
except
On Exception do
MicroChip.IsPresent(True);
end;
Responder Con Cita