开发者

Run many .exe files in 1500 folders

开发者 https://www.devze.com 2023-04-07 13:39 出处:网络
Hello i have about 1500 folders each containing a .exe file and some associated input files. The process is simple, when i double click the .exe file it operates on the input files and gives a new ou

Hello i have about 1500 folders each containing a .exe file and some associated input files. The process is simple, when i double click the .exe file it operates on the input files and gives a new output within the folder.

I just wan开发者_开发技巧t to know how to do this for all 1500 folders with a script or any other way that will save my time.


for /r %%I in (*.exe) do "%%I"

Note that this doesn't work if the .exe needs to run from its directory. In that case use

for /r %%I in (*.exe) do cd "%%~pI" && "%%I"
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号