Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I want to list all of the open files in a shared folder, if you go to Computer Management > Shared Folders > Open Files, you can see the list I am talking about.
I have been trying to use WMI queries but I cannot figure out how to have it list the path of the open file.
Posted

An opened file can not be renamed... :)
 
Share this answer
 
I don't need to rename file.:confused: I just want to get its name (for example - C:\Films\123.avi)
 
Share this answer
 
Hi,

You can use the NetShareEnum Function[^] to enumerate localhost and remote shares.

Best Wishes,
-David Delaune
 
Share this answer
 
v2
With NetShareEnum Function[^] I can get only the list of shared folders, but not the names of opened files. :((
 
Share this answer
 
did you get solution to this? any help appreciated
 
Share this answer
 
Comments
CHill60 28-Apr-15 9:32am    
If you have a question of your own then you can use the "Ask a Question" link instead of posting a question as a "Solution" to an old post.
I advise including the code that you have tried with your question.

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