
找出所有分区根目录的*.dll文件,给出cmd或powershell命令
【powershell】
仅查找分区根目录中的 *.dll 文件,powershell命令是
Get-PSDrive -PSProvider FileSystem | ForEach-Object { Get-ChildItem -Path $_.Root -Filter "*.dll" -ErrorAction SilentlyContinue }【cmd】
仅查找分区根目录中而非子目录的 *.dll 文件,给出cmd命令
dir /a-d /b C:\*.dllfor循环从A到Z,替换C:\盘符
for %i in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do dir /a-d /b %i:\*.dll 2>nul如果在.bat中,%需要2个,即
for %%i in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do dir /a-d /b %%i:\*.dll 2>nul原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。