1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Open With...

Discussion in 'T&T - Miscellaneous' started by Joe Caverly, Oct 22, 2012.

  1. Joe Caverly

    Joined:
    Aug 28, 2009
    Messages:
    638
    Likes Received:
    6
    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
     
  2. Frank

    Joined:
    Aug 2, 2011
    Messages:
    258
    Likes Received:
    4
    cool thing. very helpful for me.
     

Share This Page