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.
我正在尝试提出一个批处理文件,它将执行以下操作:
我没有太多运气找到这样一个脚本的例子或它的点点滴滴,甚至把一些东西放在一起。
@echo off for /d /r "c:\temp" %%a in (*) do if /i "%%~nxa"=="apples" set "folderpath=%%a" echo "%folderpath%"