当前位置:网站首页>Batch create / delete files, folders, modify file name suffixes
Batch create / delete files, folders, modify file name suffixes
2022-06-22 10:36:00 【Ah Fei】
use bat Batch modify file name , Suffix name , Name the file names as regular
use bat Batch production file name 、 Folder
establish / Folder md/mkdir folderName Delete folder : rd/rmdir folderName
establish / Delete file
Batch change file suffix
Change the file name to regular , With prefix
Various files are customized
One 、 establish / Delete folder ⇧
command :
md The name of the folder you want to createormkdir The name of the folder you want to create
Two 、 establish / Delete file ⇧
1. Create an empty file
Empty file , There is nothing in the created file , Is an empty file
command
type nul> The file name of the file you want to create
example : type nul> My movie .txt
Created a My movie .txt file
2. Create a non empty file
Non empty file , When you execute the command, you play with what is written in the file , There is something in the document
command
echo What you want to write into the file you create > The file name of the file you want to create
3. Delete file
command
del You want to delete the file name of the file
3、 ... and 、 Batch change file suffix 、⇧
command :
ren * .png *.jpg

example :
- Create a new text document in the folder of the file name to be modified
- Enter the command

3. Save the text document , Change the suffix to bat, Double click the file , Carry out orders Be sure to change the suffix to bat, If the suffix is not displayed in win10 Midpoint 【 see 】 ⇒ hold 【 File extension 】 Check on

complete 
If the suffix name of any file has to be changed , hold The suffix to be modified is changed to * Number , If you want to change the suffix names of all files to txt ren *.* *.txt
Four 、 Change the file name to regular , With prefix ⇧
- Create a new text file in the folder of the file name to be modified
- Enter the following
@echo off
set a=0
setlocal EnableDelayedExpansion
for %%n in (*.jpg) do (
set /A a+=1
ren "%%n" " Prefix content !a! Suffix content .png"
)
among :.jpg It can be changed to the suffix of the file you want to modify , The suffix after the prefix is set by yourself ,!a! Represents a variable , from 0 Start to increase in turn , .png Is the changed suffix
3. preservation , Change the suffix to bat
4. Double click execute , Modification successful 
I put it all jpg The suffix was changed to png, Change the prefix to picture -, The same goes for the rest
5、 ... and 、 Various files are customized ⇧
In fact, I learned the above commands , combining execl The function of , You can quickly generate many files you want , execl I won't explain it here
边栏推荐
- 2022-06-09 work record --yarn/npm-error-eperm: operation not permitted, UV_ cwd
- Nodejs basic quick review
- 信号完整性(SI)电源完整性(PI)学习笔记(二十四)差分对与差分阻抗(四)
- [deep learning] tensorflow, danger! Google itself is the one who abandoned it
- jg_使用easyexcel读取excel_20220619
- Cobalt strike from starting to Imprisonment (3)
- Solend abolishes the proposal to "take over the giant whale" and liquidates the "bomb"
- Using computed columns in laravel
- 【Shell】常用指令集锦
- What is the name of CITIC Securities app? Is it safe to open a stock account?
猜你喜欢

AttributeError: module ‘skimage. draw‘ has no attribute ‘circle‘

社区文章|MOSN 构建 Subset 优化思路分享

这不会又是一个Go的BUG吧?

10-2xxe vulnerability principle and case experiment demonstration

2022-06-09 work record --yarn/npm-error-eperm: operation not permitted, UV_ cwd

蓝牙、wifi、zigbee和lora、NB-lot,通话信号,网络信号4G

2022-06-09 工作记录--yarn/npm-Error-EPERM: operation not permitted, uv_cwd

Isn't this another go bug?

字节三面:到底知不知道什么是Eureka?

From in MySQL_ Unixtime and UNIX_ Timestamp processing database timestamp conversion - Case
随机推荐
原生JS动态添加和删除类
Pytorch实现波阻抗反演
从MVC原理开始手敲一个MVC框架,带你体会当大神的乐趣
代碼簽名證書一旦泄露 危害有多大
Niuke.com Huawei question bank (31~40)
LeetCode Algorithm 剑指 Offer 24. 反转链表
【毕业季·进击的技术er】青春不散场
JG_fx_20220620
Gartner said: cloud database is developing strongly, but local database is still full of vitality
Xidian AI ranked higher than Qingbei in terms of AI major, and Nantah ranked first in China in terms of Software Science in 2022
YOLOv3目标检测
LeetCode Algorithm 21. 合并两个有序链表
字节三面:到底知不知道什么是Eureka?
Good news - agile technology was selected into the 2022 China top 100 Digital Security Report
SQL statement of final examination for College Students
ONES 出席首届「精益软件工程大会」,分享效能改进实践
Detailed explanation of rules and ideas for advance sale of deposit
符合我公司GIS开源解决方案的探讨
Three months to successfully "turn over" the software project!
Don't be silly enough to distinguish hash, chunkhash and contenthash