Click here to Skip to main content
15,917,628 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all

I wrote a complete CRM application that uses a large database and do a lot of actions . but sometimes and the exe file is loaded on a shared network folder that is being used by a lot of users that are login to the same network and same domain.

my question is i need to retrieve the current users whom are using the application now or at least need to know who are accessing the exe file now because when i needed to update something i must turnoff all the PCs to be able to replace the exe file by the updated one

the application was wrote using VB.Net 2012

What I have tried:

I searched a lot and couldn't find a solution
Posted
Updated 12-Dec-17 7:04am

1 solution

Quote:
my question is i need to retrieve the current users whom are using the application now or at least need to know who are accessing the exe file now because when i needed to update something i must turnoff all the PCs to be able to replace the exe file by the updated one

Now you know why nobody does this. And, no, you don't have to "turn off" all the PC's using it. The users just need to close the application.

You can find out which accounts have the .EXE file locked by opening Server Manager on the server machine, opening Roles, File Services and clicking on Share and Storage Management. ON the right, you'll get an option for "Manage Open Files..." DO NOT CLOSE THE CONNECTIONS FROM HERE! You WILL crash the application on every workstation that has it open.
 
Share this answer
 
Comments
BassamKassem 13-Dec-17 11:31am    
I will make a timer to close the app from the users after leaving it idle for a certain time. thanks for your answer my friend really appreciate it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900