A. Your computer knows the common extensions via the pathext environment variable. To view the extensions, go to a command prompt and type:
When you type in this environment variable, you'll see a list of extensions that your computer recognizes, similar to the following:
If your list doesn't look like this example, go to the command prompt and type:
You can also set this variable for all users on your machine by editing the registry:
- Start the registry editor (regedit.exe).
- Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment.
- Double-click PATHEXT.
- Modify the entry as required (ensure .EXE is present) and click OK.
- Close the registry editor.
You can also add new file extensions here so that you can execute those file types without having to type in the file extension.