Anyone knows how to obtain the full path of the processes running and the modules loaded into the processes by using WMI and Batch..?
And then I wanna display them with a tree structure as below:
How can I accomplish this? Any help will be greatly appreciated..! Thanks.
├─C:\WINDOWS\Explorer.EXE
│ ├─C:\WINDOWS\system32\ntdll.dll
│ ├─C:\WINDOWS\system32\kernel32.dll
│ ├─C:\WINDOWS\system32\msvcrt.dll
│ ├─C:\WINDOWS\system32\ADVAPI32.dll
│ ├─C:\WINDOWS\system32\RPCRT4.dll
│ ├─C:\WINDOWS\system32\GDI32.dll
│ ├─C:\WINDOWS\system32\USER32.dll
│ └─C:\WINDOWS\system32\SHLWAPI.dll
├─C:\WINDOWS\system32\ctfmon.exe
│ ├─C:\WINDOWS\system32\ntdll.dll
│ ├─C:\WINDOWS\system32\kernel32.dll
│ ├─C:\WINDOWS\system32\msvcrt.dll
│ ├─C:\WINDOWS\system32\ADVAPI32.dll
│ ├─C:\WINDOWS\system32\RPCRT4.dll
│ ├─C:\WINDOWS\system32\USER32.dll
│ ├─C:\WINDOWS\system32\GDI32.dll
│ ├─C:\WINDOWS\system32\MSCTF.dll
│ └─C:\WINDOWS\system32\MSUTB.dll