方法一:

for /r  D:\要遍历的目录\  %%i  (*.exe)  do (

   echo  %%i

)

 

方法二:

set DestPath=D:\你的目录\

rem 你的后缀

set DestExt=*.exe 

for /f "delims=" %%i   in ('dir  /b/a-d/s  %DestPath%\%DestExt%')  do (

echo %%i

)

相关文章:

  • 2021-08-26
  • 2021-08-19
  • 2021-10-17
  • 2021-05-25
  • 2021-10-13
  • 2022-01-03
  • 2021-05-23
  • 2022-12-23
猜你喜欢
  • 2021-06-02
  • 2021-08-10
  • 2022-01-09
  • 2021-12-03
  • 2021-10-31
  • 2021-08-16
  • 2021-10-21
相关资源
相似解决方案