【发布时间】:2017-08-10 06:34:52
【问题描述】:
我目前正在使用来自this thread 的以下命令:
for /r "\VC++ Redist" %%a in (*.exe) do start "" "%%~fa"
并从this thread尝试了这个命令
for %%f in (*.exe) do start /wait %%f
但是每当我使用命令时,错误pops up。
Windows 找不到指定的文件夹。确保您输入了名称 正确,然后重试。
编辑:
我刚刚用这个命令解决了我的问题:
for /r "\VC++ Redist" %%a in (*.exe) do %%~fa
【问题讨论】:
-
尝试将
""标记移到此处:\"VC++ Redist" -
我刚刚用这个命令解决了我的问题:for /r "\VC++ Redist" %%a in (*.exe) do %%~fa
-
@pudding 请发布您的解决方案作为答案。 Comments 在这里用于其他用途。还有一件事:您应该将错误消息作为文本包含在问题中以使其可搜索。
-
哎呀!注意到@Melebius
-
@pudding 不是问题的一部分,而是答案。
标签: windows batch-file