Create custom launcher in Windows for custom file extensions
In Windows, you can associate any custom command with a file extension.
For example, if you want Windows to automatically run Java .jar files using the command java -jar. These examples will walk through the steps necessary to do this:
- Update the PATHEXTenvironment variable
- Associate the file extension to a file type
- Specify a command to run when that file type is executed
This example will focus on using java to run a .jar file, but this example works just as good for any custom application, or creating script runners for Python and Ruby.
