Autor Beitrag
Maniacmd
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 94

Windows XP
Delphi 7 Personal
BeitragVerfasst: Di 11.04.06 18:57 
hi
gibt es eine möglichkeit wie ich eine verknüpfung von einem eigenen programm automatisch erstellen kann?

Moderiert von user profile iconTino: Titel erweitert.
Moderiert von user profile iconTino: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Mi 12.04.2006 um 10:48
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 11.04.06 19:56 
Schau mal im EasyHelper von www.dsdt.info nach. Dort gibt es eine Funktion zum Erstellen von Verknüpfungen.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Di 11.04.06 20:16 
Vielleicht hilft dir das:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
uses JclShell, ShlObj, ShellApi;

var ShellLink: TShellLink;
begin
  CoInitialize(nil);
  with ShellLink do begin
    Arguments:='';
    IdList:=nil;
    WorkingDirectory:='c:\';
    Target:='c:\test.exe';
    Description:='Delphiprog';
  end;
  ShellLinkCreateSystem(ShellLink, CSIDL_COMMON_STARTMENU,
    'Programme\Zubehör\Test.lnk');
  ShellLinkFree(ShellLink);
end;
Ist aus diesen Thread: www.delphi-forum.de/...;highlight=shelllink

Ansonsten Suche in der Delphi-PRAXiS SHELLLINK oder Suche bei Google SHELLLINK. Hoffe dir geholfen zu haben ;-)
Maniacmd Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 94

Windows XP
Delphi 7 Personal
BeitragVerfasst: Mi 12.04.06 09:25 
ja super danke
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mi 12.04.06 09:32 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
Uses 
  ShlObj, ActiveX, ComObj; 

procedure CreateLink (Target, Args, WorkDir, ShortCutName, Icon: String; IconNo: Integer); 
var 
  IObj: IUnknown; 
  Link: IShellLink; 
  IPFile: IPersistFile; 
  TargetW: WideString; 
begin 
  IObj := CreateComObject (CLSID_ShellLink); 
  Link := IObj as IShellLink; 
  IPFile := IObj as IPersistFile; 

  with Link do 
  begin 
    SetPath (PChar (Target)); 
    SetArguments (PChar (Args)); 
    SetShowCmd (SW_SHOWMINIMIZED); 
    SetWorkingDirectory (PChar (WorkDir)); 
    SetIconLocation (PChar (Icon), IconNo); 
  end; 

  TargetW := ShortCutName; 
  IPFile.Save (PWChar (TargetW), False); 
End;


//CreateLink ('c:\test.txt', '', '', 'd:\test.lnk', 'c:\icon.ico', 0);