0

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?

1

2 Answers 2

0

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

assoc /?

to see the help for it.

0

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.

3
  • The OP tagged it "Windows".... Sep 4, 2011 at 16:11
  • Oops. -------------
    – RobinJ
    Sep 4, 2011 at 16:22
  • So why the -1 then? Sep 4, 2011 at 17:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .