【发布时间】:2018-05-18 07:59:25
【问题描述】:
在cmd中一行
tasklist /m /fi "imagename eq xxxxx.exe" > output.txt
会将所有进程使用的 DLL 输出到一个文件中。
如何将输出分隔为多个 txt 文件,每个文件都包含 DLL 使用的进程名称?
【问题讨论】:
标签: python powershell dll cmd exe
在cmd中一行
tasklist /m /fi "imagename eq xxxxx.exe" > output.txt
会将所有进程使用的 DLL 输出到一个文件中。
如何将输出分隔为多个 txt 文件,每个文件都包含 DLL 使用的进程名称?
【问题讨论】:
标签: python powershell dll cmd exe
这应该可以得到你想要的:
Get-Process |
ForEach-Object {
$procName = $_.Name
Get-Process -InputObject $_ -Module -ErrorAction SilentlyContinue |
Export-Csv ".\$procName.csv" -NoTypeInformation
}
【讨论】: