LEONEL ROCHA
asked on
remote app folder path
I'm developing an application that monitors the remote execution of another application and need to get the full path folder where such application is stored.
what would be the best way to get that info?
what would be the best way to get that info?
P/Invoke GetProcessImageFileName. E.g. getprocessimagefilename (psapi).
do you have the source of the remote application?
ASKER
fryezz, nope
ASKER
ste5an, I can't use tha api, because I'm using a development tool that generates the source code. I only can type c# source code, can't attach any extra DLL.
Well, you may take a look at WMI. There should be also a possibilty to qeuery the information,
you can use shell command to execute task list on remote computer
put it in a string and locate your application
wmic /node: /output:d:\process.txt process get description,executablepath
and check this url to call it remotely
http://www.petri.com/command-line-wmi-part-2.htm
put it in a string and locate your application
wmic /node: /output:d:\process.txt process get description,executablepath
and check this url to call it remotely
http://www.petri.com/command-line-wmi-part-2.htm
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
are both applications will run one same computer, where is remote in this case?
ASKER
I've solved by myself
Can you explain how this solves your problem?