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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Windows looks at the
PATHEXTenvironment 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
assocandftypecommands to find out how the file will be executed:(You can use
PATHEXT,assocandftypeto make any file type executable.)