Solved

remote app folder path

Posted on 2014-11-24
10
79 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

809 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