当前位置:网站首页>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“
- Log4j knowledge point record
- Android high-level interview must ask: overall business and project architecture design and reconstruction
- Classification of technology selection (2022)
- Devil cold rice 𞓜 078 devil answers the market in Shanghai and Nanjing; Communication and guidance; Winning the country and killing and screening; The purpose of making money; Change other people's op
- Solve the problem that PowerShell mining occupies 100% of cpu7 in win7
- BLDC double closed loop (speed PI + current PI) Simulink simulation model
- Opencv reads webcam video and saves it locally
- Close the computer port
- Numpy append function
猜你喜欢
![[unity3d] rolling barrage effect in live broadcasting room](/img/61/46a7d6c4bf887fca8f088e7673cf2f.png)
[unity3d] rolling barrage effect in live broadcasting room

Sonic cloud real machine tutorial

L2-006 樹的遍曆(中後序確定二叉樹&層序遍曆)
![How to use C language to realize [guessing numbers game]](/img/8c/052dcb0ce64ee1713bebb1340248e6.png)
How to use C language to realize [guessing numbers game]

ROP Emporium x86_64 7~8题

Cloud computing learning 1 - openstack cloud computing installation and deployment steps with pictures and texts (Xiandian 2.2)

Traversée de l'arbre L2 - 006

grain rain

Domestic lightweight Kanban scrum agile project management tool

接口请求时间太长,jstack观察锁持有情况
随机推荐
Practice of industrial defect detection project (III) -- Based on FPN_ PCB defect detection of tensorflow
1215_ Hello world used by scons
Les derniers noeuds K de la liste jz22
The interface request takes too long. Jstack observes the lock holding
Solve the problem that PowerShell mining occupies 100% of cpu7 in win7
接口请求时间太长,jstack观察锁持有情况
Difference between relative path and absolute path (often asked in interview)
Actual combat of industrial defect detection project (IV) -- ceramic defect detection based on hrnet
C language 171 Number of recent palindromes
AC & A2C & A3C
tf. keras. layers. Conv? D function
B blocks of the 46th ICPC Asian regional competition (Kunming)
Traversée de l'arbre L2 - 006
Winsock programming interface experiment: Ping
Rhcsa day 3 operation
Log4j知识点记录
Encapsulate components such as pull-down menu based on ele
ROP Emporium x86_ 64 7 ~ 8 questions
Windows MySQL 8 zip installation
Fashion MNIST dataset classification training