当前位置:网站首页>Bat script learning (I)
Bat script learning (I)
2022-07-06 21:54:00 【qq_ one billion four hundred and ten million eight hundred and 】
Reprint :BAT Batch file set Detailed command _ Wang Yu Wan Feng's blog -CSDN Blog _ The batch set command
Reprint :BAT Script learning —— Basic grammar _Word Brother's blog -CSDN Blog _bat Basic script syntax
First, you can follow the VScode Script writing , Again according to code runner Conduct script testing .vscode Really invincible .
Catalog
Two : A blank line :echo. ( Comma realizes an empty line )
Four : Implementation of judgment statement
6、 ... and : Start the program
7、 ... and : Implementation calls other bat file
8、 ... and :%cd% and %~dp0 The role of
One : Print information :echo
Two : A blank line :echo. ( Comma realizes an empty line )
3、 ... and : Annotation mode
:: notes ( No display )
rem notes ( Show )
@ notes ( The terminal does not display , But it can do @ What's in it , You can hide messages )
Four : Implementation of judgment statement
among A Represents a space . Space should be added .
Determine whether a variable is defined
Determine whether a file exists
5、 ... and : Building links
1. Copy file :/h
2. Create folder shortcuts : /j
6、 ... and : Start the program
The format is : start + Space + quotes + Space + Program directory
7、 ... and : Implementation calls other bat file
call: Call another batch file ( If not call And directly call other batch files , After executing the batch file, you will not be able to return to the current file and execute the subsequent commands of the current file ).
1. First create a shortcut for other folders
2. call call Command to execute other bat file
3. Create new shortcuts for other folders
8、 ... and :%cd% and %~dp0 The role of
%cd% : Get the working path of the current file
%~dp0 : Gets the of the current file Can only be used in batch files , It is determined by the directory location of the batch file it is in , It's batch processing , The drive letter where the file is located :+ route
Nine : Realization if The function of judgment and
边栏推荐
- Reset Mikrotik Routeros using netinstall
- C language: comprehensive application of if, def and ifndef
- uni-app App端半屏连续扫码
- 袁小林:安全不只是标准,更是沃尔沃不变的信仰和追求
- Four common ways and performance comparison of ArrayList de duplication (jmh performance analysis)
- numpy 下载安装
- C语言:#if、#def和#ifndef综合应用
- Microsoft technology empowerment position - February course Preview
- 一行代码可以做些什么?
- Leveldb source code analysis series - main process
猜你喜欢
用aardio写一个旋转验证码标注小工具
关于char[]数组通过scanf赋值使用上的一些问题。。
Unity3D学习笔记6——GPU实例化(1)
Yyds dry goods inventory C language recursive implementation of Hanoi Tower
JPEG2000-Matlab源码实现
Efficiency tool +wps check box shows the solution to the sun problem
guava:Collections.unmodifiableXXX创建的collection并不immutable
Huawei has launched attacks in many industries at the same time, and its frightening technology has made European and American enterprises tremble
抖音将推独立种草App“可颂”,字节忘不掉小红书?
[Li Kou brushing questions] one dimensional dynamic planning record (53 change exchanges, 300 longest increasing subsequence, 53 largest subarray and)
随机推荐
1D convolution detail
The underlying implementation of string
Replace Internet TV set-top box application through digital TV and broadband network
Reinforcement learning - learning notes 5 | alphago
Z function (extended KMP)
MPLS experiment
功能强大的国产Api管理工具
Hill | insert sort
Fzu 1686 dragon mystery repeated coverage
The underlying implementation of string
guava: Multiset的使用
Redistemplate common collection instructions opsforhash (IV)
Earned value management EVM detailed explanation and application, example explanation
Uni app app half screen continuous code scanning
R3live notes: image processing section
Why is the cluster mode of spark on Yan better than the client mode
记一次清理挖矿病毒的过程
Dialogue with Jia Yangqing, vice president of Alibaba: pursuing a big model is not a bad thing
From campus to Tencent work for a year of those stumbles!
WEB功能测试说明