【发布时间】:2013-11-13 10:25:45
【问题描述】:
我运行一个 python 命令
python file.py inputfile.stl
但我想将其扩展为一次输入多个文件。我将如何制作一个 Windows 批处理文件,该文件在运行时将为该目录中的每个 *.stl 文件运行一个命令。例如它会运行,
python file.py INPUTFILE1.stl
python file.py ANOTHERFILE.stl
python file.py BLAH.stl
....
请注意,.stl 文件会有不同的前缀。
【问题讨论】:
标签: python batch-file stl dos