For example if there are multiple executable files on the path i.e., a.exe, a.bat and user types 'a' (enter), which file will execute?
What other executable formats are supported on Windows?
For example if there are multiple executable files on the path i.e., a.exe, a.bat and user types 'a' (enter), which file will execute?
What other executable formats are supported on Windows?
Precedence is: DOSKEY Macro .COM .EXE .BAT
http://support.microsoft.com/kb/35284
Windows looks at the
PATHEXT
environment variable to decide which file types are considered executable:The first matching file on the path that has one of those extensions will be executed.
You can use the
assoc
andftype
commands to find out how the file will be executed:(You can use
PATHEXT
,assoc
andftype
to make any file type executable.)