Jump to content

Are paths that are both UNC -and- relative valid?


Amby19
 Share

Recommended Posts

I've searched extensively on MSDN and elsewhere, but I can't find an answer to this question: Is a UNC path string that is also relative syntactically valid?  For example, are any of the following path strings syntactically valid? (regardless of whether they make logical sense or redundant or meaningful or not):

 

\\srv\shr1\..

\\srv\shr1\dir1\dir2\..

\\srv\shr1\dir1\dir2\.

\\srv\shr1\.

\\srv\shr1\..

\\srv\.

\\srv\shr1\dir1\..

\\

 

Thanks!

Link to comment
Share on other sites

1 hour ago, catgate said:

I think I have seen that the matter of their being  coerced is important.

 

Thank you for your reply, but I regret that I'm apparently too under-informed to understand it.  In any case, I'm now virtually certain that a path string that contains both UNC and relative components is syntactically invalid, so unless you or someone else informs me otherwise, that's what I'll go with.

 

Thanks again.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy