天极Yesky
  • 笔记本电脑
    笔记本
  • 台式电脑
    台式机
  • 手机
    手机
  • 电脑硬件DIY
    DIY硬件
  • CPU
    主板
    音箱
  • 硬盘
    显卡
    键鼠
  • 内存光驱
    显示器
    机箱电源

  • 数码相机DC
    数码相机
  • MP3播放器
    MP3/MP4
  • 数码摄像机DV
    摄像机
  • 电脑外设
    外设
  • 网络
    网络
  • 服务器
    服务器
  • 数字家庭
    数字家庭
  • 群乐
    群乐
  • 产品报价 行情 经销商 渠道 评测 | 软件 设计 网页 开发 安全 论坛 E时代 游戏 图片 壁纸 下载 网摘 博客 索尼专区 Vista 科技奥运
    天极网
    Open a URL from a batch file
    作者: Serdar Yegulalp
    出处:
    责任编辑:
    [ 2004-06-17 19:11 ]


    There are several ways to open a URL from a command or from within a batch file line in Windows 2000. The first and easiest method is to use the START command:

    START http://WWW.TECHTARGET.COM

    By default, if there is already a Web browser open that last had focus, the URL will open in that one. Note that if the URL ends in ".com," you MUST prefix it with either "www." or "http://" (if the URL doesn't begin with a WWW extension). Otherwise, the command-line interpreter will think you're trying to launch a program with the extension .COM!

    You can also use the START command to alter the priority of the launched process, through one of its command line switches. Type START /? to get a complete list of the command-line parameters available for it.

    Another URL-launching method is to call Internet Explorer directly (provided that's your browser). This will always open a new instance of a browser:

    "C:Program FilesInternet ExplorerIEXPLORE.EXE"
    http://www.techtarget.com

    The same restrictions about the URL apply here. For safety's sake, it's always best to add the "HTTP://" at the beginning of the URL.


    Serdar Yegulalp is the editor of the Windows 2000 Power Users Newsletter.

    笔名:
    请您注意:

     遵守国家有关法律、法规,尊重网上道德,承担一切因您的行为而直接或间接引起的法律责任。

     天极网拥有管理笔名和留言的一切权利。
    相关内容