if you know the name of the application that you want to open the file with you can append the program name before the file: eg. ""notepad yourfilehere.txt"" or ""wordpad yourfilehere.txt"". As mentioned above you must be in the files directory for this to work, alternatively eg. ""notepad C:\PathTo\YourFile\yourfilehere.txt"" and the program that you're trying to launch must be a system application or be added to the PATH system variable you could use an application launcher program. This technically isn't going to let you open a file from a command line but programs such as Launchy Colibri and FARR enable you to access the programs that open the files much more easily."