Jump to content
RTollison

finding the share of a unc path

Recommended Posts

yes but i am not a network educated so i dont know if there is a limitaion so if \\server\share is gospel then i can run with that. 

 

thanks

Share this post


Link to post

Yes, that's always the case: \\server\sharename or \\server\sharename\subfolder.

 

Note that there doesn't necessarily have to be a folder added on to that as the "sharename" part already points to a folder--the shared folder. Also, for hidden shares, the sharename will end with a "$" (at least on Windows).

Share this post


Link to post
23 hours ago, RTollison said:

if you were given a unc path how can you determine the \\server\share part of say \\server\share\myfolder

See TPath, it has divers and sundry methods to dissect pathes, including UNC pathes.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×