Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Open With...

Aug
2,082
85
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
 
cool thing. very helpful for me.
 
Back
Top
[FOX] Ultimate Translator
Translate