Solved

remote app folder path

Posted on 2014-11-24
10
80 Views
Last Modified: 2014-12-01
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?
0
Comment
Question by:leorocha
  • 4
  • 3
  • 3
10 Comments
 
LVL 33

Expert Comment

by:ste5an
ID: 40462174
0
 
LVL 12

Expert Comment

by:FarWest
ID: 40462183
do you have the source of the remote application?
0
 

Author Comment

by:leorocha
ID: 40462290
fryezz, nope
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:leorocha
ID: 40462310
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.
0
 
LVL 33

Expert Comment

by:ste5an
ID: 40462348
Well, you may take a look at WMI. There should be also a possibilty to qeuery the information,
0
 
LVL 12

Expert Comment

by:FarWest
ID: 40462380
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
0
 

Accepted Solution

by:
leorocha earned 0 total points
ID: 40467494
I've solved this issue using "MainModule.FileName" from System.Diagnostics.Process class.

Thanks all of you
0
 
LVL 12

Expert Comment

by:FarWest
ID: 40467664
are both applications will run one same computer, where is remote in this case?
0
 

Author Closing Comment

by:leorocha
ID: 40473328
I've solved by myself
0
 
LVL 33

Expert Comment

by:ste5an
ID: 40473495
Can you explain how this solves your problem?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question