运行 1500 个文件夹中的许多 .exe 文件

发布于 2024-12-06 17:46:56 字数 155 浏览 5 评论 0原文

您好,我有大约 1500 个文件夹,每个文件夹都包含一个 .exe 文件和一些关联的输入文件。 该过程很简单,当我双击 .exe 文件时,它会对输入文件进行操作并在文件夹中给出新的输出。

我只是想知道如何使用脚本或任何其他可以节省时间的方式对所有 1500 个文件夹执行此操作。

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 want to know how to do this for all 1500 folders with a script or any other way that will save my time.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

海螺姑娘 2024-12-13 17:46:56
for /r %%I in (*.exe) do "%%I"

请注意,如果 .exe 需要从其目录运行,则此方法不起作用。在这种情况下使用

for /r %%I in (*.exe) do cd "%%~pI" && "%%I"
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"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文