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?

link|improve this question

50% accept rate
feedback

2 Answers

Use the DOS command assoc to modify the file extension associations. Do

assoc /?

to see the help for it.

link|improve this answer
feedback

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.

link|improve this answer
The OP tagged it "Windows".... – Ned Batchelder Sep 4 '11 at 16:11
Oops. ------------- – RobinJ Sep 4 '11 at 16:22
So why the -1 then? – Luke Sep 4 '11 at 17:32
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.