Setting a Default Program for Extensionless Files

I've been using Ruby on Rails for a while now to build websites. One important file in any Ruby on Rails project is the Gemfile. This file has no extension, so it's a bit annoying to open in Windows. Windows doesn't let you easily set a default program for extensionless files, so you have to choose which file to use to open it every single time, But there is a way to set a default program for extensionless files if you're comfortable with the Windows command line.

In cmd.exe, enter the command below. Replace **C:\Program Files\Sublime Text 3\sublimetext.exe**_ with the path to the program you want to use to open extensionless files.

ftype "No Extension"="C:\Program Files\Sublime Text 3\sublime_text.exe" "%1"

Do you have another Windows tip or trick you'd like to share? Let me know in the comments!