Текущий архив: 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