GetAssociatedProgram

 

Description

Retrieves the name of the executable file (program) associated with the specified file name.

If there is no associated program or if an error occured, an empty string will be returned.

Syntax

[Program =] oDlg.GetAssociatedProgram ( File )

Parameters

Part

Description

Program =

String variable to which the return value (program name) is assigned

oDlg

A reference to the WshDialog.Kit automation object (as returned by the Wscript or VBScript CreateObject methods)

File

The name of the file you want to retrieve the associated program name for.
Both absolute and relative paths are valid.

Example

See the GetAssociatedIcon page for an example