windows_用命令行/终端打开网页(url)(launch a webpage by winodws CLI)

在powershell/cmd下

  • 使用start 打开http
    start http://www.baidu.com
    更短的:
  • start www.baidu.com
  • 用explorer
    explorer https://www.baidu.com

powershell 函数来打开

可以将以下函数写入到模块中(或者配置文件$profile),以便使用

function https
{
param(
$domain
)
Start-Process $domain
}
function httpsw
{
param (
$domain
)
$url = "www.$domain"
Start-Process $url
Write-Output "try to open https url:🎶 $url"
}

在这里插入图片描述

posted @   xuchaoxin1375  阅读(98)  评论(0编辑  收藏  举报  
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示