cmd笔记

查看域名:nslookup www.xxx.com。

删除非空目录:rmdir /s /q  [drive:]path

交互式批量删除指定目录下指定类型文件

批量获取一个文件夹内所有文件的文件名:

dir *.png /b >list.txt

tree /f >list.txt

for /f "delims=" %%a in ('dir /b/a-d/oN *.*') do echo %%a >>list.txt      保存为.bat文件

校验文件哈希值:

certutil -hashfile e: est.txt MD5
certutil -hashfile e: est.txt SHA1
certutil -hashfile e: est.txt SHA256

原文地址:https://www.cnblogs.com/yuwentims/p/9809329.html