Is it possible to specify what action (run/open/edit) I want to execute on a given file in the command line window? If so how?
2 Answers
Use the DOS command assoc
to modify the file extension associations. Do
assoc /?
to see the help for it.
Windows
Run/Open: file
or start file
Edit: notepad file
Linux (Gnome environment)
Run: ./file
.
Edit: gedit file
(for text files)
Open: gnome-run file
Replace file
by the filename.