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
SysLinkExtension (Function)
In French: SysAssocieExtension
Associates an extension (.txt, .avi, etc.) to a default execution program.
Example
// Links the ".txt" extension to the "app.exe" executable
SysLinkExtension(".txt", "C:\Program Files\MyApp\app.exe ""%1""", sysCurrentUser)
Syntax
<Result> = SysLinkExtension(<Extension> , <Command> [, <User>])
<Result>: Boolean
  • True if the association is performed,
  • False otherwise. ErrorInfo returns more details.
<Extension>: Character string (with quotes)
Extension to link.
<Command>: Character string (with quotes)
Command to run. This command has the following format: "FullPathOfExecutable %1"
where %1 represents the selected file to pass in argument. We advise you to enclose it between quotes to guarantee its proper execution.
Note: This parameter can contain system shortcuts such as %systemroot%.
<User>: Optional Integer constant
The association between the application and the extension is saved in the registry. Two options are available:
sysCurrentUser
(Default value)
The association will be taken into account for the current user only.
sysAllUsersThe association will be taken into account for all the users of the current computer.
Note: You must have the "Administrator" rights to run this operation.
Remarks
A single command is accepted for each extension. If several commands are associated with the same extension, only the last command will be taken into account.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Minimum required version
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment