|
|
|
|
fCreateLink (Function) In french: fCréeLien Creates a link on a file at the specified location. This link can be: - a symbolic link (lnk file).
- a physical link. This link may (or may not) be named like the source file. The physical link is used to make the same file appear at different locations.
Remarks: - To delete a symbolic or physical link, use fDelete.
- To create a shortcut on the Windows desktop, in the "Start" menu of Windows or in a specific directory, use CreateShortcut.
// Create a symbolic link (lnk file) fCreateLink("C:\temp\readme.txt", "C:\readme.lnk", fLinkSymbolic) // Create a physical link fCreateLink("C:\temp\readme.txt", "C:\readme.lnk", fLinkPhysical)
Syntax
<Result> = fCreateLink(<Pointed file> , <Link destination> , <Type of link> [, <Command line> [, <Working directory>]])
<Result>: Boolean - True if the link was created,
- False otherwise. To get more details on the error, use ErrorInfo.
<Pointed file>: Character string Full path of the file toward which the link will point. <Link destination>: Character string Path and name of the file corresponding to the link to create. The extension of the link must be specified. <Type of link>: Integer constant Type of link to create: | | fLinkPhysical | Create a physical link. A physical link is a file that can be accessed via several paths. The file deletion can be performed only when all physical links have been deleted. Caution: <Pointed file> and <Link destination> must be on the same disk. | fLinkSymbolic | Create a symbolic link. A symbolic link is a "pointer" to a file. The deletion of the symbolic link does not affect the pointed file. The deletion of the pointed file makes the symbolic link invalid. |
<Command line>: Optional character string Command line of the link. This parameter is taken into account when creating a symbolic link only.
<Working directory>: Optional character string Working directory of the link. This parameter is taken into account when creating a symbolic link only.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|