顯示程序所使用到的 DLL:
tasklist /m
部分執行結果:
映像名稱 PID 模組
========================= ======== ============================================
System Idle Process 0 不適用
System 4 不適用
smss.exe 308 不適用
...
svchost.exe 1616 不適用
taskhost.exe 1792 ntdll.dll, kernel32.dll, KERNELBASE.dll,
msvcrt.dll, ole32.dll, GDI32.dll,
USER32.dll, LPK.dll, USP10.dll, RPCRT4.dll,
OLEAUT32.dll, IMM32.DLL, MSCTF.dll,
CRYPTBASE.dll, sechost.dll, ADVAPI32.dll,
uxtheme.dll, dwmapi.dll, CLBCatQ.DLL,
PlaySndSrv.dll, RpcRtRemote.dll,
MsCtfMonitor.dll, MSUTB.dll, WINSTA.dll,
WTSAPI32.dll, HotStartUserAgent.dll,
slc.dll, WINMM.dll, dimsjob.dll,
SHLWAPI.dll, taskschd.dll, SspiCli.dll,
netprofm.dll, NSI.dll, nlaapi.dll,
CRYPTSP.dll, rsaenh.dll, npmproxy.dll,
dsrole.dll, MMDevAPI.DLL, PROPSYS.dll,
wdmaud.drv, ksuser.dll, AVRT.dll,
SETUPAPI.dll, CFGMGR32.dll, DEVOBJ.dll,
AUDIOSES.DLL, msacm32.drv, MSACM32.dll,
midimap.dll
幹嘛要看 DLL 呢?因為有些程式可能會需要使用特定版本的 DLL,所以使用下面的指令可以找出特定名稱的 DLL。例如要找出 GDI32.dll 的話:
tasklist /m GDI32.dll
執行結果:
映像名稱 PID 模組
========================= ======== ============================================
taskhost.exe 1792 GDI32.dll
dwm.exe 2688 GDI32.dll
explorer.exe 2708 GDI32.dll
RAVCpl64.exe 3824 GDI32.dll
cmd.exe 7044 GDI32.dll
conhost.exe 984 GDI32.dll
tasklist.exe 9040 GDI32.dll
知道哪些程序有用到特定的 DLL 之後,再利用其他工具找出這些 DLL 所在目錄,用檔案總管來得知版本。