Adding default command line options when opening a particular filetype

Posted by dbdkmezz on Super User See other posts from Super User or by dbdkmezz
Published on 2011-03-12T18:46:50Z Indexed on 2011/03/13 0:13 UTC
Read the original article Hit count: 209

Filed under:

I'd like to make it so that whenever I open a particular file type (by double clicking it in explorer) it always opens the associated program with particular command line options.

So, for example, when double clicking a .tex file I want it to not only open it with emacs (which is easy to set up just by going into "Open With"), but run emacs with the command line option "-fs".

What's the easiest way to do this?

Thanks

© Super User or respective owner

Related posts about windows-7