当前位置:网站首页>【Batch】learning notes
【Batch】learning notes
2022-07-02 06:26:00 【bryant_meng】
不好意思上错图了
1 什么是 bat
bat 是 batch 的缩写,先看看百度百科上的定义
bat (批处理文件类型) 批处理文件,在DOS和Windows(任意)系统中,.bat文件是可执行文件,由一系列命令构成,其中可以包含对其他程序的调用。这个文件的每一行都是一条DOS命令(大部分时候就好像我们在DOS提示符下执行的命令行一样),你可以使用DOS下的 Edit 或者 Windows 的记事本(notepad)等任何文本文件编辑工具创建和修改批处理文件。
下面介绍一些基本的脚本操作
2 基本操作
注释
注释代码,英文输入法下两个冒号
::代码
暂停
运行结束后暂停,pause
,黑窗口不会自动退出
代码
pause
设置变量
%echo off
SET var=2021_12_17
echo %var%
pause
使用变量的时候也是 %var%
等价于 2021_12_17
更多关于变量的操作可以参考 .bat批处理(三):变量声明、设置、拼接、截取
删除整个文件夹
分为两步
第一步删除掉所有子文件夹中的内容
del /q/a/f/s 文件夹路径\"."
第二步删除所有空文件夹(黑窗口会让自己判定一下 yes or no)
rd /s 文件夹路径\
例如删除 hello 文件夹
del /q/a/f/s C:\personal\hello\"."
rd /s C:\personal\hello\
复制 / 移动
copy src dst
move src dst
一个劲在那 cp 和 mv 的人不会只有我一个吧
切换磁盘
cd
不行,需要 cd /d
cd /d D:\xxx
别一个劲在那 cd cd 以为电脑坏了
查看文件列表
不是 ls
,用 dir
dir
边栏推荐
- 常见的机器学习相关评价指标
- [medical] participants to medical ontologies: Content Selection for Clinical Abstract Summarization
- Solve the problem of latex picture floating
- 【TCDCN】《Facial landmark detection by deep multi-task learning》
- TimeCLR: A self-supervised contrastive learning framework for univariate time series representation
- PointNet原理证明与理解
- CPU的寄存器
- 一份Slide两张表格带你快速了解目标检测
- Drawing mechanism of view (II)
- Timeout docking video generation
猜你喜欢
MoCO ——Momentum Contrast for Unsupervised Visual Representation Learning
iOD及Detectron2搭建过程问题记录
使用百度网盘上传数据到服务器上
Faster-ILOD、maskrcnn_ Benchmark trains its own VOC data set and problem summary
How to clean up logs on notebook computers to improve the response speed of web pages
【Programming】
Implementation of purchase, sales and inventory system with ssm+mysql
[introduction to information retrieval] Chapter 1 Boolean retrieval
How do vision transformer work? [interpretation of the paper]
Pointnet understanding (step 4 of pointnet Implementation)
随机推荐
Label propagation
【MagNet】《Progressive Semantic Segmentation》
ModuleNotFoundError: No module named ‘pytest‘
Traditional target detection notes 1__ Viola Jones
[introduction to information retrieval] Chapter 1 Boolean retrieval
win10+vs2017+denseflow编译
Drawing mechanism of view (II)
Timeout docking video generation
CPU register
Calculate the difference in days, months, and years between two dates in PHP
PHP returns the corresponding key value according to the value in the two-dimensional array
How do vision transformer work?【论文解读】
iOD及Detectron2搭建过程问题记录
【DIoU】《Distance-IoU Loss:Faster and Better Learning for Bounding Box Regression》
Yolov3 trains its own data set (mmdetection)
[medical] participants to medical ontologies: Content Selection for Clinical Abstract Summarization
TimeCLR: A self-supervised contrastive learning framework for univariate time series representation
【Paper Reading】
深度学习分类优化实战
Drawing mechanism of view (I)