2015-07-21 62 views

回答

0

枚舉的文件夾和爲每一個測試,如果它包含*.h文件

for /d /r %%a in (*) do if exist "%%a\*.h" echo %%a 
0

PowerShell方法:

> Get-ChildItem -Recurse -Directory | ? { Test-Path ($_.FullName + "\*.log") } 
| Select-Object FullName 
相關問題