当前位置:网站首页>【板栗糖GIS】DOS—如何在目录文件中批量建立子文件夹
【板栗糖GIS】DOS—如何在目录文件中批量建立子文件夹
2022-07-29 21:25:00 【Giser板栗糖】
【板栗糖GIS】DOS—如何在目录文件中批量建立子文件夹
目录
脚本运行前(每个街道都是空文件夹)

脚本运行后(街道内建立东西南北四个子文件)

@echo off
for /f "delims=" %%a in ('dir /b /ad') do (
for %%b in (.) do (
md "%%a\东
md "%%a\南
md "%%a\西
md "%%a\北
)
)
红色部分为需要填写的子文件夹名称
具体使用步骤
1. 新建txt文件
目录下建立txt文档
2. 内容复制
@echo off
for /f "delims=" %%a in ('dir /b /ad') do (
for %%b in (.) do (
md "%%a\东
md "%%a\南
md "%%a\西
md "%%a\北
)
)
3. 另存ANSI模式的bat文件

4. 双击运行bat
边栏推荐
- 容器网络硬核技术内幕 (23) 权利,知识与责任
- spyder打不开解决方案
- Add a logo to the upper left corner of the picture, add time and address to the lower left corner, and wrap the line when the address reaches the specified length
- 【AD】【持续更新ing】关于AD设计过程中一些小细节
- [BUG]memset和成员初始化的先后顺序
- An article to understand service governance in distributed development
- 官宣!苏州吴江开发区上线电子劳动合同平台
- 336. Palindromic Pairs
- D. Rain(思维/线性代数/差分数组)
- GBASE 8s 数据库的智能大对象备份
猜你喜欢
随机推荐
《nlp入门+实战:第七章:pytorch中数据集加载和自带数据集的使用》
Fully automated machine learning modeling!The effect hangs the primary alchemist!
[HDLBits brush questions] Verilog Language (4) Procedures and More Verilog Features section
[Point Cloud] M3DeTR: Multi-representation, Multi-scale, Mutual-relation 3D Object Detection with Transformers
Small program WeChat positioning is not accurate
Qualcomm WLAN framework learning (31) -- Power save
GBASE 8s 数据索引
GBASE 8s 通过临时表提升排序性能
GBASE 8s 自动删除正在被使用的数据库
linux install redis using script
容器网络硬核技术内幕 (26) 知微知彰,知柔知刚 (下)
在Ferora35中安装oracle-database-xe-21c
GBASE 8s 如何估算索引使用多少空间
阿里 P8 爆出的这份大厂面试指南,看完工资暴涨 30k!
The Ministry of Human Resources and Social Security announced that "database operation administrator" has become a new occupation, and OceanBase participated in the formulation of occupational standar
OPEN数据 | 新库上线 | CnOpenDataA股上市公司社会责任报告数据
GBASE 8s 通过light scan优化查询性能
Huawei Enjoy 50 Pro evaluation: HarmonyOS blessing is smoother and safer
第3章业务功能开发(线索关联市场活动,插入数据并查询)
杨辉三角的各种输出:









