开发者

Run many .exe files in 1500 folders

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜