Sys\_SetFileAssociation
Description
Section titled “Description”Sets file association for a given extension
Syntax
Section titled “Syntax”Sys_SetFileAssociation(sExtenstion, sAction, sCommand, bOverwriteExisting) As Boolean
Parameters
Section titled “Parameters”sExtenstion (String)
System restore point description
sAction (String)
The action to create
sCommand (String)
The command to execute when the action is activated
bOverwriteExisting (String)
Overwrite association if it already exists
Example
Section titled “Example”VBScript
'Program.exe takes a file as a launch parameter which is supplied by Windows by %1If bStatus Then bStatus = Sys_SetFileAssociation(".extension", "Open", gsProgramFiles & "\Program\Program.exe %1", True)Related functions
Section titled “Related functions”