Open With...

Hi,
In Windows Explorer, (I am using XP SP3), when I right-click on a file, one option on the context menu is Open With...

A dialog is then displayed, allowing me to choose a program with which to open the file.

Here is how I do the same thing from the command line, using this batch file;

Code:
:: ow.btm
:: Open With.btm
:: Choose the program with which to open the file
RUNDLL32.EXE SHELL32.DLL,OpenAs_RunDLL %1

If you prefer, you could instead create an alias;

Code:
alias ow=`RUNDLL32.EXE SHELL32.DLL,OpenAs_RunDLL %1`

Joe
 
Aug 2, 2011
258
4
Berlin, Germany
cool thing. very helpful for me.