【问题标题】:Executig lots of batch files on windows using TCL [closed]使用 TCL 在 Windows 上执行大量批处理文件 [关闭]
【发布时间】:2026-02-15 20:50:01
【问题描述】:

在这里,我编写了一个脚本,该脚本应该执行当前目录中的所有文件。它们是批处理文件。

set path [pwd]
append path "/"
set files [glob *]
foreach file $files {
    exec cmd.exe /c ${path}$file
}

但我收到以下错误:

The system cannot find the path specified.

【问题讨论】:

    标签: windows batch-file cmd exec tcl


    【解决方案1】:

    问题不在脚本中,而在批处理文件中。其中有一些使用路径的命令是不存在的。

    【讨论】: