Sep 06
Put the following code in your .bashrc file:
function open()
{
if [ "$1" = "" ]
then
rundll32 url.dll,FileProtocolHandler .
else
rundll32 url.dll,FileProtocolHandler `cygpath -w "$1"`
fi
}
Now you can use the open command.
- Type
open http://www.franzens.orgto fire up your web browser and point it to this site. - Type
open some_document.docto start Microsoft Word (or Open Office) with specified document. - Type
open some_document.txtto start notepad with specified document. - Type
opento launch the explorer in current directory. - Type
open //some_network_path/foo/barto launch the explorer in specified directory.
I think you see the pattern above. I use the open command all the time and it is really useful.