【发布时间】:2017-05-25 21:54:50
【问题描述】:
我有一个 Windows 控制台应用程序,它接受一个文件列表作为参数,每个参数用空格分隔,例如 MyApp.exe 1.txt 2.txt 3.txt。我的文件夹除了txt还有其他文件格式,但我只对txt文件感兴趣。我想实现类似MyApp.exe for %%i in (.\*.txt) 的目标。提前致谢。
【问题讨论】:
标签: batch-file command-line command-line-arguments command-prompt