![](/img/trans.png)
[英]How to return the newest file from each sub-directory in Windows command line using batch
[英]Using Command Prompt To Call a Batch File in a Sub-Directory
我想使用批处理文件来调用子目录中的其他批处理文件。 例如,如果我的文件系统如下所示:
MainFolder
main.bat
FirstDirectory
SecondDirectory
foo.bat
那么main.bat可能看起来像这样:
echo on
REM This lines tells the user what this bat file is doing
call ant
call \SecondDirectory\foo.bat
我正在寻找一种我认为不存在的单线解决方案。 不幸的是,我并不总是希望用批处理文件执行此操作,并希望直接从命令行执行此操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.