Windows equivalent command for “open” command on Mac

command linemacwindows

Coming from Mac OS X, you can type:

open yourfilehere.txt

and your file will open just as if you had opened it from Finder.

On Windows, I'd like to be able to open files in the same manner. What's the command?

Best Answer

Just drop the 'open' and you're set.

Enter the filename and it will open with the appropriate program.

You'll need to consider the path to the file, so executing the above would only work if the file is within the current directory.