Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.04.11;
Скачать: CL | DM;

Вниз

Как создать что-нибудь.lnk ?   Найти похожие ветки 

 
CrazyAngel ©   (2002-03-28 20:02) [0]

Люди помогите plssss , как создать что-нибудь.lnk т.е. ярлык на мою прогу ?


 
lipskiy ©   (2002-03-28 20:45) [1]

procedure TForm1.CreateShortcut(const FilePath, ShortcutPath, WorkDir, Description, Params:string);
var
obj: IUnknown;
isl: IShellLink;
ipf: IPersistFile;
begin
obj := CreateComObject(CLSID_ShellLink);
isl := obj as IShellLink;
ipf := obj as IPersistFile;
with isl do
begin
SetPath(PChar(FilePath));
SetArguments(PChar(Params));
SetDescription(PChar(Description));
SetWorkingDirectory(PChar(WorkDir));
end;
ipf.Save(PWChar(WideString(ShortcutPath)), False);
end;


 
CrazyAngel ©   (2002-03-28 20:49) [2]

>lipskiy
Спасибо , попробую ...



Страницы: 1 вся ветка

Текущий архив: 2002.04.11;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.01 c
3-32703
MaveRick
2002-03-21 04:20
2002.04.11
Есть ли возможность???


1-32811
Adoon
2002-04-01 11:33
2002.04.11
1С и Delphi6


3-32696
kaif
2002-03-21 10:59
2002.04.11
Cached Updates update failed?


1-32874
artko
2002-03-29 12:21
2002.04.11
Как передать данные в форму?


3-32674
reg
2002-03-20 15:21
2002.04.11
поиск по бд