windows批处理遍历当前目录的文件
新建txt文件,
把以下代码复制进txt,.txt后缀修改为.bat,双击此文件
@echo off
for /f "delims=" %%i in ('dir /s/a-d /b *.*') do echo %%~ni>>JustName.txt
start JustName.txt
pause
--
版权声明:
作者:kukey-admin
链接:http://kuyour.top/index.php/2022/08/20/windows%e6%89%b9%e5%a4%84%e7%90%86%e9%81%8d%e5%8e%86%e5%bd%93%e5%89%8d%e7%9b%ae%e5%bd%95%e7%9a%84%e6%96%87%e4%bb%b6/
来源:KuKey
文章版权归作者所有,未经允许请勿转载。
THE END
0
二维码
打赏
海报
windows批处理遍历当前目录的文件
新建txt文件,
把以下代码复制进txt,.txt后缀修改为.bat,双击此文件
@echo off
for /f "delims=" %%i in ('dir /s/a-d /b *.*') do echo %%~ni>>Just……
共有 0 条评论