How to find or search for invalid characters for OneDrive upload

Looking how to find or search for the following invalid characters in all the shared folders to prepare to upload to OneDrive.

The characters are:

/:
*
?
"
<
>
|
#
%



What are you using to upload? a pattern match in your application to validate the file name .......



What are you using to upload? a pattern match in your application to validate the file name .......



I need to verify my data structure before I proceed in the upload. Is there a script I can use to produce an list of the output so it can be modified?



Yes.

Depending on what it is you are using, you have to look at the naming convention you use and make sure it matches the requirements .



I understand, but this is a customer's structure and they have over 100k + files/folders and I would like to search via a script instead of one at a time.



What scripting language are you using? powershell, vbscript, perl, batch, etc.
Each one has their own methods to traverse directories, and looking at filenames and then performing a pattern match to see whether they meet the requirements or have invalid characters.

You need to provide what options are available to you with which you are familiar at which point ....... it would be simpler to guide you along to the solution.

Share this

Related Posts

There was an error in this gadget