Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
简单的批处理命令行从 C: 驱动器中找到 textfile.txt,然后运行它。试图找到一个但没有看到任何地方,所以这就是我在这里问它的原因。那么,有什么想法吗?
试试这个:
for /f "delims=" %%i in ('dir /b /a-d /s c:\textfile.txt') do "%%~fi"