当前位置:网站首页>Use bat command to launch common browsers with one click
Use bat command to launch common browsers with one click
2022-07-05 10:43:00 【Listen to the bleak rain at night】
We often need to open a specific website , For example, translating web pages , Or other web pages , You need to jump several times before you can jump to the target page . It's written in bat After the command , You can start with one click .
You can do it again .bat Write the command in the file , And then double click , Here are some examples 2 A simple example .
1、 Start Baidu
@echo off
cd C:\Program Files (x86)\Microsoft\Edge\Application
start msedge.exe https://www.baidu.com/
2、 Start rookie parsing json Webpage
@echo off
# browser exe The address of
cd C:\Program Files (x86)\Microsoft\Edge\Application
start msedge.exe https://c.runoob.com/front-end/53/
Additional knowledge :
bat The grammar is as follows :
Start
Start a separate “ Command prompt ” Window to run the specified program or command . If you use... Without parameters ,start A second command prompt window opens .
grammar
start ["title"] [/dPath] [/i] [/min] [/max] [{/separate | /shared}] [{/low | /normal | /high | /realtime | /abovenormal | belownormal}] [/wait] [/b] [FileName] [parameters]
Parameters
"title" Specified in the “ Command prompt ” The title displayed in the title bar of the window .
/dpatch Specify startup directory .
/i take Cmd.exe Start the environment transfer to the new “ Command prompt ” window .
/min Start a new minimized window .
/max Start a new maximization window .
/separate Start in a separate memory space 16 Bit program .
/shared Start in shared memory space 16 Bit program .
/low Start the application at idle priority .
/normal Start the application with general priority .
/high Start the application with high priority .
/realtime Start the application with real-time priority .
/abovenormal Start the application in a way that exceeds the normal priority .
/belownormal Start the application at a lower priority than usual .
/wait Start the application , And wait for it to end .
/b You don't have to open a new... When you start the application “ Command prompt ” window . Unless the application is enabled CTRL+C, Otherwise, we will ignore CTRL+C operation . Use CTRL+BREAK Interrupt the application .
For non executable files, just type the file name as a command , You can run the file through its file association . About using assoc and ftype Create the details of these associations in the command script , see also “”.
The first of the commands that are run is marked as “CMD” String but does not include an extension or path qualifier ,“CMD” Will be COMSPEC The value of the variable replaces . This prevents users from selecting from the current directory cmd.
When you run 32 Bit graphical user interface (GUI) Application time ,cmd Does not wait for the application to exit... Before returning to the command prompt . If you run an application from a command script , This new situation will not happen . When the first symbol in the running command does not include the extension ,Cmd.exe Use PATHEXT The value of the environment variable determines the extension to be searched and the search order .PATHEXT The default value of the variable is :COM;.EXE;.BAT;.CMD( Syntax and PATH The variables are the same , Use semicolons to separate different elements ). When you search for an executable and there is no match on any extension ,start The directory name will be searched .
bat Of start The command is briefly introduced as follows ;
边栏推荐
- 第五届 Polkadot Hackathon 创业大赛全程回顾,获胜项目揭秘!
- csdn软件测试入门的测试基本流程
- Ad20 make logo
- 2022年流动式起重机司机考试题库及模拟考试
- 手机厂商“互卷”之年:“机海战术”失灵,“慢节奏”打法崛起
- Workmanager Learning one
- SQL Server 监控统计阻塞脚本信息
- How can PostgreSQL CDC set a separate incremental mode, debezium snapshot. mo
- Web3基金会「Grant计划」赋能开发者,盘点四大成功项目
- Based on shengteng AI Yisa technology, it launched a full target structured solution for video images, reaching the industry-leading level
猜你喜欢
![[vite] 1371 - develop vite plug-ins by hand](/img/7f/84bba39965b4116f20b1cf8211f70a.png)
[vite] 1371 - develop vite plug-ins by hand

双向RNN与堆叠的双向RNN

How does redis implement multiple zones?

2022年流动式起重机司机考试题库及模拟考试

Workmanager learning 1
![[paper reading] ckan: collaborative knowledge aware autonomous network for adviser systems](/img/6c/5b14f47503033bc2c85a259a968d94.png)
[paper reading] ckan: collaborative knowledge aware autonomous network for adviser systems
![[dark horse morning post] Luo Yonghao responded to ridicule Oriental selection; Dong Qing's husband Mi Chunlei was executed for more than 700million; Geely officially acquired Meizu; Huawei releases M](/img/d7/4671b5a74317a8f87ffd36be2b34e1.jpg)
[dark horse morning post] Luo Yonghao responded to ridicule Oriental selection; Dong Qing's husband Mi Chunlei was executed for more than 700million; Geely officially acquired Meizu; Huawei releases M

【DNS】“Can‘t resolve host“ as non-root user, but works fine as root

Talk about the understanding of fault tolerance mechanism and state consistency in Flink framework

爬虫(9) - Scrapy框架(1) | Scrapy 异步网络爬虫框架
随机推荐
Who is the "conscience" domestic brand?
[paper reading] kgat: knowledge graph attention network for recommendation
Node の MongoDB Driver
基于昇腾AI丨以萨技术推出视频图像全目标结构化解决方案,达到业界领先水平
脚手架开发进阶
flink cdc不能监听mysql日志,大家遇到过这个问题吧?
Write double click event
AD20 制作 Logo
“军备竞赛”时期的对比学习
Nuxt//
Learning II of workmanager
GBase 8c数据库如何查看登录用户的登录信息,如上一次登录认证通过的日期、时间和IP等信息?
Pseudo class elements -- before and after
WorkManager的学习二
流程控制、
微信小程序触底加载与下拉刷新的实现
websocket
C语言实现QQ聊天室小项目 [完整源码]
2021年山东省赛题库题目抓包
How did automated specification inspection software develop?