Loading

Friday, January 22, 2010

Open a Website from the Windows Command Line

Here are three ways to open a web page from the command prompt from Windows 7, Windows Vista, Windows XP, etc. All of the following examples will open the designated web page in Internet Explorer or other default browser.
  • start <website>
    Example:
    start www.powercram.com
    OR start http://powercram.com
  • \progra~1\intern~1\iexplore <website>
    Example:
    \progra~1\intern~1\iexplore www.powercram.com
    OR \progra~1\intern~1\iexplore http://powercram.com
  • "\program files\internet explorer\iexplore" <website>
    Example (must include quotes):
    "\program files\internet explorer\iexplore" www.powercram.com
    OR "\program files\internet explorer\iexplore" http://powercram.com
NOTES
  • The first example will open the designated site/page in a new tab of Internet Explorer.  The other two will launch a new instance of the browser.
  • In the examples above <website> must either be preceded by "http://" or "www."

2 comments:

  1. The Last one didn't work for me, but the first one did.

    ReplyDelete
  2. is there anyway i can specify a proxy server in the command line?

    ReplyDelete