PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
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.
Notes:
  • 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.
Versions 19 and later
PHP This function is now available for the PHP sites.
New in version 19
PHP This function is now available for the PHP sites.
PHP This function is now available for the PHP sites.
Example
// 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> , <Link Type> [, <Command Line> [, <Working Directory>]])
<Result>: Boolean
  • True if the link was created,
  • False otherwise. To find out the error details, use ErrorInfo.
<Pointed File>: Character string (with quotes)
Full path of the file toward which the link will point.
<Link Destination>: Character string (with quotes)
Path and name of the file corresponding to the link to create. The extension of the link must be specified.
<Link Type>: Integer constant
Type of link to create:
fLinkPhysicalCreate 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 found on the same disk.
fLinkSymbolicCreate 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.
Linux Only the owner of the file can create a symbolic link.
PHP To create a symbolic link, Windows Vista or later must be used.
<Command Line>: Optional character string (with quotes)
Versions 19 and later
Command line of the link. This parameter is taken into account when creating a symbolic link only.
LinuxPHP This parameter is not available.
New in version 19
Command line of the link. This parameter is taken into account when creating a symbolic link only.
LinuxPHP This parameter is not available.
Command line of the link. This parameter is taken into account when creating a symbolic link only.
LinuxPHP This parameter is not available.
<Working Directory>: Optional character string (with quotes)
Versions 19 and later
Working directory of the link. This parameter is taken into account when creating a symbolic link only.
LinuxPHP This parameter is not available.
New in version 19
Working directory of the link. This parameter is taken into account when creating a symbolic link only.
LinuxPHP This parameter is not available.
Working directory of the link. This parameter is taken into account when creating a symbolic link only.
LinuxPHP This parameter is not available.
Remarks
  • Windows In Windows, the links can only be created on disks formatted in NTFS. Therefore, fCreateLink is not available in Windows 9x. Windows In Windows, the links can only be created on disks formatted in NTFS.
  • PHP In order for fCreateLink to operate, you must run PHP in IIS with an elevation of rights
  • PHP If the system used corresponds to Windows Vista or later, you must use a PHP server later than version 5.3.
  • Windows The creation of links operates from Windows 2000 only.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Linux wd230std.so
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment