sirbounty
asked on
Visual Studio 2010 - determine remote share/path in use
I have a console app I'm working on where I retrieve a remote share/path.
Whether the user data on that server is a share, or not, I want to determine if the user is using the data.
In the case of a share, the path would be \\server\userID$
In the other instance, the user would be setup on folder redirection, and their data path would be \\server\frdata$\userID (share would be frdata$, but the userID would not be a share, simply a subfolder in the share).
I think I can perform the logic for the above, but I need to know how I would determine if the parent folder (or anything therein) is in use. Locally on the console, I would bring up fsmgmt.msc and check the Open Files listings for that path...
I found vbscript code (http://blogs.technet.com/b/heyscriptingguy/archive/2005/02/16/how-can-i-list-open-sessions-and-open-files-on-a-computer.aspx), but wanted to know if there was anything suited for vb.net that I could use instead...?
Whether the user data on that server is a share, or not, I want to determine if the user is using the data.
In the case of a share, the path would be \\server\userID$
In the other instance, the user would be setup on folder redirection, and their data path would be \\server\frdata$\userID (share would be frdata$, but the userID would not be a share, simply a subfolder in the share).
I think I can perform the logic for the above, but I need to know how I would determine if the parent folder (or anything therein) is in use. Locally on the console, I would bring up fsmgmt.msc and check the Open Files listings for that path...
I found vbscript code (http://blogs.technet.com/b/heyscriptingguy/archive/2005/02/16/how-can-i-list-open-sessions-and-open-files-on-a-computer.aspx), but wanted to know if there was anything suited for vb.net that I could use instead...?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I can view it in the Shared Folders applet, so it's being stored somewhere, I would think...?