当前位置:网站首页>【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
边栏推荐
- yolov3训练自己的数据集(MMDetection)
- SSM supermarket order management system
- Installation and use of image data crawling tool Image Downloader
- Semi supervised mixpatch
- Latex formula normal and italic
- Implement interface Iterable & lt; T>
- Record of problems in the construction process of IOD and detectron2
- MoCO ——Momentum Contrast for Unsupervised Visual Representation Learning
- 【Sparse-to-Dense】《Sparse-to-Dense:Depth Prediction from Sparse Depth Samples and a Single Image》
- Regular expressions in MySQL
猜你喜欢

Mmdetection installation problem
![[introduction to information retrieval] Chapter 6 term weight and vector space model](/img/42/bc54da40a878198118648291e2e762.png)
[introduction to information retrieval] Chapter 6 term weight and vector space model
![[Sparse to Dense] Sparse to Dense: Depth Prediction from Sparse Depth samples and a Single Image](/img/05/bf131a9e2716c9147a5473db4d0a5b.png)
[Sparse to Dense] Sparse to Dense: Depth Prediction from Sparse Depth samples and a Single Image

【FastDepth】《FastDepth:Fast Monocular Depth Estimation on Embedded Systems》

【MagNet】《Progressive Semantic Segmentation》

SSM student achievement information management system

常见的机器学习相关评价指标
![[model distillation] tinybert: distilling Bert for natural language understanding](/img/c1/e1c1a3cf039c4df1b59ef4b4afbcb2.png)
[model distillation] tinybert: distilling Bert for natural language understanding
![[introduction to information retrieval] Chapter 1 Boolean retrieval](/img/78/df4bcefd3307d7cdd25a9ee345f244.png)
[introduction to information retrieval] Chapter 1 Boolean retrieval

Pointnet understanding (step 4 of pointnet Implementation)
随机推荐
Play online games with mame32k
传统目标检测笔记1__ Viola Jones
[Bert, gpt+kg research] collection of papers on the integration of Pretrain model with knowledge
How to clean up logs on notebook computers to improve the response speed of web pages
Calculate the total in the tree structure data in PHP
Faster-ILOD、maskrcnn_ Benchmark training coco data set and problem summary
A slide with two tables will help you quickly understand the target detection
Faster-ILOD、maskrcnn_benchmark训练自己的voc数据集及问题汇总
Handwritten call, apply, bind
TimeCLR: A self-supervised contrastive learning framework for univariate time series representation
MMDetection模型微调
Tencent machine test questions
Win10+vs2017+denseflow compilation
How do vision transformer work? [interpretation of the paper]
latex公式正体和斜体
【DIoU】《Distance-IoU Loss:Faster and Better Learning for Bounding Box Regression》
机器学习理论学习:感知机
Implementation of yolov5 single image detection based on pytorch
ModuleNotFoundError: No module named ‘pytest‘
Latex formula normal and italic