To associate all file names with an extension of TXT to the program NOTEPAD.EXE, enter at the WinOne® Command Prompt :-
EXT TXT=NOTEPAD.EXE "%1"
To execute the program NOTEPAD and pass the file REPORT.TXT to the program, enter at the command prompt :-
Assume that the drive and directory for the program WINGIF.EXE is located in D:\PICS. Then to create an association to view GIF files, enter at the command prompt :-
EXT GIF=D:\PICS\WINGIF.EXE "%1"
To view GIF files, located in D:\CARS, enter at the command prompt :-
To delete the file extension association for .TXT files, enter at the command prompt :-
EXT /D TXT
Special notes on associations:
Wildcards can be entered at the command prompt, such as in Example 2 above, but the filename extension must not contain Wildcards, since the filename extension is used to determine which association is to be used.
When an association is determined, then the WinOne® Command Prompt will try to locate the program. The WinOne® Command Prompt will search the current directory first, and if it is not found in the current directory then the PATH environment variable is searched.