当前位置:网站首页>How to count the number of all files in a directory under win10 system
How to count the number of all files in a directory under win10 system
2022-04-23 02:57:00 【xiaofengxuan892】
In some cases, statistics are needed Win10 The number of all files in some directories under the system , You can open it directly in this directory cmd window , You can also use cd The command jumps to the specified directory :
only Count the number of folders :
Count the number of folders in this directory —— It's just a first-class Directory :
dir /b /ad | find /v /c "::"
Count the number of all folders in this directory —— All the folders in this directory , Contains folders under subdirectories :
dir /b /s /ad | find /v /c "::"
only Count the number of documents :
Count the number of files in this directory —— Only under this directory , Do not include files in subdirectories :
dir /b /a-d | find /v /c "::"
Count the number of all files in this directory —— Include files in subdirectories :
dir /b /s /a-d | find /v /c "::"
Count the number of files and folders :
Count the number of files and folders in this directory —— Only under this directory , No subdirectories :
dir /b | find /v /c "::"
Count the number of all files and folders in the directory —— Include files and folders in subdirectories :
dir /b /s | find /v /c "::"
PS:
1.cmd Window cd To specified location
cd /d File path
Such as : cd /d d:\test
2. “/s” Is recursive lookup , "/a-d" Is exclude folder , “/ad” It's just a statistical folder
版权声明
本文为[xiaofengxuan892]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220648186800.html
边栏推荐
- The input of El input input box is invalid, and error in data(): "referenceerror: El is not defined“
- 《信息系统项目管理师总结》第六章 项目人力资源管理
- 《信息系统项目管理师总结》第四章 项目成本管理
- ele之Table表格的封装
- mysql function函数语法
- Introduction to ACM [inclusion exclusion theorem]
- The express project changes the jade template to art template
- Niuke white moon race 5 [problem solving mathematics field]
- JS learning notes
- Get together to watch (detailed version) eat a few cents a day
猜你喜欢
Source code and some understanding of employee management system based on polymorphism
grain rain
Niuke white moon race 6 [solution]
Store consumption SMS notification template
Six very 6 computer driver managers: what software is good for driver upgrade? Recommended by the best computer driver management software abroad
基于Scrum进行创新和管理
Plug in for vscode
Linux Redis ——Redis HA Sentinel 集群搭建详解 & Redis主从部署
The interface request takes too long. Jstack observes the lock holding
[wechat applet] set the bottom menu (tabbar) for the applet
随机推荐
Classification of technology selection (2022)
Navicat failed to connect to Oracle Database: cannot load OCI DLL, 87: instant client package is
MySQL insert free column
Rhcsa day 3 operation
Slave should be able to synchronize with the master in tests/integration/replication-psync.tcl
Opencv fills the rectangle with a transparent color
Probabilistic model of machine learning
First knowledge of C language ~ branch statements
Sonic cloud real machine tutorial
How to build an integrated industrial Internet plus hazardous safety production management platform?
Store consumption SMS notification template
The problem of removing spaces from strings
Numpy append function
MySQL complex query uses temporary table / with as (similar to table variable)
Regular object type conversion tool - Common DOM class
第46届ICPC亚洲区域赛(昆明) B Blocks(容斥+子集和DP+期望DP)
AC380V drop 5v12v24v200ma, UHV non isolated chip IC scheme
Niuke white moon race 6 [solution]
Kubernetes - detailed explanation of pod
LeetCode 1450 - 1453