当前位置:网站首页>【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
边栏推荐
- 使用百度网盘上传数据到服务器上
- Pointnet understanding (step 4 of pointnet Implementation)
- [introduction to information retrieval] Chapter II vocabulary dictionary and inverted record table
- [CVPR‘22 Oral2] TAN: Temporal Alignment Networks for Long-term Video
- 基于pytorch的YOLOv5单张图片检测实现
- Implementation of yolov5 single image detection based on onnxruntime
- Machine learning theory learning: perceptron
- 【DIoU】《Distance-IoU Loss:Faster and Better Learning for Bounding Box Regression》
- Deep learning classification Optimization Practice
- What if a new window always pops up when opening a folder on a laptop
猜你喜欢

Execution of procedures

【TCDCN】《Facial landmark detection by deep multi-task learning》

Sorting out dialectics of nature
![[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

【Cascade FPD】《Deep Convolutional Network Cascade for Facial Point Detection》

Point cloud data understanding (step 3 of pointnet Implementation)

Machine learning theory learning: perceptron

【Sparse-to-Dense】《Sparse-to-Dense:Depth Prediction from Sparse Depth Samples and a Single Image》

SSM student achievement information management system

TimeCLR: A self-supervised contrastive learning framework for univariate time series representation
随机推荐
【Sparse-to-Dense】《Sparse-to-Dense:Depth Prediction from Sparse Depth Samples and a Single Image》
[introduction to information retrieval] Chapter 7 scoring calculation in search system
Ppt skills
Conversion of numerical amount into capital figures in PHP
自然辩证辨析题整理
What if the notebook computer cannot run the CMD command
Tencent machine test questions
Pointnet understanding (step 4 of pointnet Implementation)
win10解决IE浏览器安装不上的问题
超时停靠视频生成
Faster-ILOD、maskrcnn_ Benchmark training coco data set and problem summary
Faster-ILOD、maskrcnn_benchmark安装过程及遇到问题
iOD及Detectron2搭建过程问题记录
Implementation of yolov5 single image detection based on pytorch
MMDetection模型微调
Implementation of yolov5 single image detection based on onnxruntime
Deep learning classification Optimization Practice
【Paper Reading】
半监督之mixmatch
How do vision transformer work? [interpretation of the paper]