【发布时间】:2013-09-13 00:48:47
【问题描述】:
我正在使用一个简单的目录命令 我在目录中有一个文件
C:\tokyo\scripts\notempty>dir /b /a-d
1.pst
到目前为止一切顺利
当我将结果重定向到文件中时
C:\tokyo\scripts\notempty>dir /b /a-d > test
我明白了
C:\tokyo\scripts\notempty>type test
1.pst
test
问题:为什么我正在创建的文件名 (test) 会出现在文件中? 该文件应仅包含 1.pst。
有人可以帮忙吗?这让我发疯。
谢谢 马特
【问题讨论】:
标签: windows shell batch-file scripting redirect