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.
我想获得文件的完整路径,包括隐藏文件和一个文件夹中具有特定扩展名的文件夹并打印此路径。我怎么能做到这一点?
您可以使用:
for /f "delims=" %%p in ('dir /B /S /A *.ext') do echo %%p
选项 /A 包括一个隐藏文件。