Define 'valid'. One approach would be to 'try it and see'. Attempt the create, if that succeeds, check to verify the directory exists1. In this case, 'valid' means being able to be created.
If you define what you mean by 'valid', it may help with the responses.
Footnotes:
Updates:
--MidLifeXis
In reply to Re^3: How to validate windows path
by MidLifeXis
in thread How to validate windows path
by roteme
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |