473,396 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How can I obtain the full path of processes and modules using WMI..???

2
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
Oct 3 '07 #1
2 2123
kumho
2
[EDIT explative deleted]! 20 days without a reply..?
Oct 22 '07 #2
bartonc
6,596 Expert 4TB
[EDIT explative deleted]! 20 days without a reply..?
Sorry about that. As this is not a software development forum (it's a sys/admin forum) the best that I can do is direct you to the Microsoft tool that I use to learn WMI: scriptomatic 2.

Hope that helps.
Oct 22 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Hayato Iriumi | last post by:
Hello, I have a need to kill a process. It sounds each enough, but the problem is that I have multiple executables running from different paths. Say, I have MyService.exe running from C:\FolderA...
1
by: connah | last post by:
Hi All! How can I obtain the full XML path of any given XML Node? For example, if my XML document looks like this: ---BEGIN XML DOC--- <Tag1> <Tag2> <Tag3></Tag3> </Tag2>
1
by: VictorG | last post by:
Hello, The below C# code works fine in obtaining the windows user's account SID when the user is local to the machine. It throws a "Not Found" exception when trying top obtain the SID for a...
3
by: xxs | last post by:
I have writen some codes as follow: #include <windows.h> #include <tlhelp32.h> #include <stdio.h> // Forward declarations: BOOL GetProcessList( ); BOOL ListProcessModules( DWORD dwPID...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.