Solved

Exe users

Posted on 2002-06-27
11
280 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
  • 3
  • 2
  • 2
  • +4
11 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 100 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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

807 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