Solved

remote app folder path

Posted on 2014-11-24
10
82 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 3
10 Comments
 
LVL 34

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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 

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 34

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 34

Expert Comment

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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

615 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