The DASCLI fileassoc command prints the file or protocol associated with the specified file extension.

Parameters

dascli fileassoc [file_extension | *] [shell_verb] [flags] [string_type]

No parameter
If no parameter is specified, help for this command is displayed.
file extension | *
File extension to be used for the search. If “*”, all associated extensions are displayed.
shell_verb
Text string to identify the associated command, for example “open”, “print”, and so on.
flags
Decimal integers from the following values. These can be specified by using the OR operand.
Value Flag Name Description
0x00000001 ASSOCF_INIT_NOREMAPCLSID Do not remap clsids to progids.
0x00000002 ASSOCF_INIT_BYEXENAME ASSOCF_OPEN_BYEXENAME Executable is being passed in.
0x00000004 ASSOCF_INIT_DEFAULTTOSTAR Treat "*" as the BaseClass.
0x00000008 ASSOCF_INIT_DEFAULTTOFOLDER Treat "Folder" as the BaseClass.
0x00000010 ASSOCF_NOUSERSETTINGS Do not use HKCU.
0x00000020 ASSOCF_NOTRUNCATE Do not truncate the return string.
0x00000040 ASSOCF_VERIFY Verify data is accurate (DISK HITS).
0x00000080 ASSOCF_REMAPRUNDLL Gets information about rundlls target, if applicable.
0x00000100 ASSOCF_NOFIXUPS Attempt to fix errors, if errors are found.
0x00000200 ASSOCF_IGNOREBASECLASS Do not recurse into the BaseClass.
0x00000400 ASSOCF_INIT_IGNOREUNKNOWN Do not use the "Unknown" progid, fail instead.
The base value is ASSOCF_IGNOREBASECLASS | ASSOCF_NOTRUNCATE | ASSOCF_VERIFY. This value cannot be removed. Specify any additional values by using the OR operand.
If no values are specified, ASSOCF_NOUSERSETTINGS is added to the base value.
string_type
Decimal integer. For a list of values, see ASSOCSTR enumeration.
The default is ASSOCSTR_EXECUTABLE.