Skip to content

Associate

Homes32 edited this page May 14, 2022 · 1 revision

Associate

Associate a file extension with a program.

Syntax

Associate,<FileExtension>,<ProgramExe>

Arguments

Argument Description
FileExtension The file extension to associate.
ProgramExe The full path to the executable to which the file extension will be associated with.

Return Codes

None.

Remarks

This command will automatically load/unload any registry hives needed provided they are not already loaded. If the hives are already loaded they will not be unloaded.

Related

Examples

Example 1

Associate the .ini file extension with notepad.exe.


Associate,.ini,"C:\Windows\System32\notepad.exe"