Board logo

标题: [文件操作] [已解决]批处理命令dir只显示文件名 不显示文件目录 [打印本页]

作者: fantasy_07    时间: 2021-7-19 11:32     标题: [已解决]批处理命令dir只显示文件名 不显示文件目录

本帖最后由 fantasy_07 于 2021-7-19 21:10 编辑

我想让dir只显示当前文件夹下的文件名,和子目录下的文件名,不显示子目录名,怎么写?
dir /s /b
会显示子目录的文件夹名
我想屏蔽显示子文件夹名
作者: Batcher    时间: 2021-7-19 11:44

回复 1# fantasy_07


dir /s /b /a-d
作者: cmd1152    时间: 2021-7-19 11:59

加个/a-d就好
作者: fantasy_07    时间: 2021-7-19 12:01

回复 2# Batcher


    哇。谢谢版主
作者: fantasy_07    时间: 2021-7-19 12:31

加个/a-d就好
cmd1152 发表于 2021-7-19 11:59



    果然有效,谢谢啦
作者: cmd1152    时间: 2021-7-19 13:33

回复 4# fantasy_07


    他是管理员...




欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2