I have an input box that the user will input the name of a folder, how can I verify that it does not have invalid characters that windows can't have in a folder name.
Additionally they might enter the folder in with a sub folder, but everytime that happens it added in an extra \
Example:
Docs\Taxes\
that gets saved as Docs\\Taxes\\
So i need to somehow make sure there are no dbl \'s and no invalid chars.
Additionally they might enter the folder in with a sub folder, but everytime that happens it added in an extra \
Example:
Docs\Taxes\
that gets saved as Docs\\Taxes\\
So i need to somehow make sure there are no dbl \'s and no invalid chars.
Comment