|
|
|
|
|
SysLinkExtension (Function) In french: SysAssocieExtension Associates an extension (.txt, .avi, etc.) to a default execution program.
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 Extension to link. <Command>: Character string Command to execute. This command has the following format: "FullPathOfExecutable %1" where %1 represents the selected file to pass in argument. It is advisable to enclose it in quotation marks to make sure it is executed correctly. 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: | | sysAllUsers | The association will be taken into account for all the users of the current computer. Note: This operation requires Administrator privileges. | sysCurrentUser (Default value) | The association will be taken into account for the current user only. |
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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|