Ver Mensaje Individual
  #5  
Antiguo 05-02-2004
tango01 tango01 is offline
Miembro
 
Registrado: jun 2003
Ubicación: Mar del Plata - Argentina
Posts: 46
Reputación: 0
tango01 Va por buen camino
a qui esta el codigo ....

Código:
procedure CreaLnk( Exe,Argumentos,DirTrabajo,NombreLnk,DirDestino:string);
  var
    Objeto: IUnknown;
    UnSlink: IShellLink;
    FicheroP: IPersistFile;
    WFichero: WideString;
  begin
    Objeto := CreateComObject(CLSID_ShellLink);
    UnSlink := Objeto as IShellLink;
    FicheroP := Objeto as IPersistFile;
    with UnSlink do
      begin
        SetArguments( PChar(Argumentos) );
        SetPath( PChar(Exe) );
        SetWorkingDirectory( PChar(DirTrabajo) );
      end;
    WFichero := IncludeTrailingBackslash(DirDestino) + NombreLnk;
    FicheroP.Save(PWChar(WFichero),False);
  end;
__________________
El secreto de la libertad está en no tener miedo.
Responder Con Cita