Quantcast
Channel: User Bijan - Stack Overflow
Viewing all articles
Browse latest Browse all 99

Batch file: Run command for every file of certain extension

$
0
0

I run a python command

python file.py inputfile.stl

but I want to expand it to input several files at a time. How would I make a windows batch file that when ran, will run a command for every *.stl file in that directory. So for example it will run,

python file.py INPUTFILE1.stlpython file.py ANOTHERFILE.stlpython file.py BLAH.stl....

Please note that the .stl files will have a different prefix.


Viewing all articles
Browse latest Browse all 99

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>