Unit Shortcut

Classes

Functions

CreateLink -

Types

TSpecialLocations

Constants

Variables


Functions


procedure CreateLink(Target,Args,WorkDir,ShortCutName: String; Loc: TSpecialLocations);


Types


TSpecialLocations = (slNone,slDesktop,slFavorites,slFonts,slNetHood,slPersonal,
                       slPrograms,slRecent,slSendTo,slStartMenu,slStartup,slTemplates);
TARGET is the file that the shortcut will point to. ARGS is the command-line arguments you wish to pass to the Target app. WORKDIR is the directory that will be current when the link is launched. SHORTCUTNAME is the name of the shortcut link file. LOC is the location the file should go. Uses the WinInfo unit to get the location of special system locations. Set to slNone if ShortCutName fully defines the location of the shortcut.

Constants


Variables