?
Solved

Exe users

Posted on 2002-06-27
11
Medium Priority
?
293 Views
Last Modified: 2010-05-02
I was wondering if it is possible to write VB code that could analyse an exe file, and return the Windows user ids of the persons using that file.
0
Comment
Question by:Bob98
[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
  • 3
  • 2
  • 2
  • +4
11 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 400 total points
ID: 7113145
I don't think that this is feasible in any language. You would need to write an application that runs as a service and monitors the users that launch the specific other application. Alternatively include in the other application a mechanism that records the user names when they run it into a database and report on that information.
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 7113221
the EXE file DOES NOT have any indication of the users who are currently using that file.  In fact, the EXE file on disk, is NOT waht is being "used".  Rather, a COPY of the EXE file, which has been loaded into the RAM of the user's PC, is what is actually being executed.

Arthur Wood
0
 
LVL 26

Expert Comment

by:EDDYKT
ID: 7113258
Just a thought,

if exe is running, the exe itself must be locked by the window system. Is it possible to identify who lock the file?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 18

Expert Comment

by:bobbit31
ID: 7113783
> if exe is running, the exe itself must be locked by the window system

>  In fact, the EXE file on disk, is NOT waht is being "used".  Rather, a COPY of the EXE file, which has been loaded into the RAM of the user's PC
0
 
LVL 26

Expert Comment

by:EDDYKT
ID: 7114213
>>  In fact, the EXE file on disk, is NOT waht is being "used".  Rather, a COPY of the EXE file, which has been loaded into the RAM of the user's PC


If exe is running, you cannot delete or replace it
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7114730
As long as i know, There is no a "full" exe in memory, only parts which are in use. The OS has to know where to found other parts of code that "remains" in exe file itself when they would be needed.
To me, the only that you could get is the process id for that exe and not who was the person that opened it.
In other way, the user is always the same since you cannot have two or more "sessions" at the same time in the same machine. If file is accessed over network, the logged user that launchs the app is who are opening it.
i hope this make sense, my english is no good.
0
 
LVL 18

Expert Comment

by:bobbit31
ID: 7114737
> my english is no good
it's actually not that bad... and it keeps getting better :)
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7114819
:) Thanks, i keep trying...
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7964592
Hi Bob98,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept TimCottee's comment(s) as an answer.

Bob98, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 5

Expert Comment

by:Netminder
ID: 8014829
Per recommendation, force-accepted.

Netminder
EE Admin
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 8016379
Just to clarify:
"....the user is always the same since you cannot have two or more "sessions" at the same time in the same machine. If ..."
means, Not with XP since youy could have running programs as diferents user is i saw right.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

752 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