输出exe使用的所有DLL的脚本 [英] Script that outputs all DLLs used by exe
本文介绍了输出exe使用的所有DLL的脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在cmd行中
tasklist /m /fi "imagename eq xxxxx.exe" > output.txt
会将所有进程使用的DLL输出到一个文件。
will output the DLLs used by all processes to one file.
如何将输出分成多个txt文件,每个文件都包含DLL使用的进程的名称?
How can I separate the output to multiple txt files, each file contains the name of the process the the DLL used?
推荐答案
这应该可以为您提供想要的东西:
This should get you what you want:
Get-Process |
ForEach-Object {
$procName = $_.Name
Get-Process -InputObject $_ -Module -ErrorAction SilentlyContinue |
Export-Csv ".\$procName.csv" -NoTypeInformation
}
这篇关于输出exe使用的所有DLL的脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文