Broadsound
asked on
Fastest way to search a directory for file names with specific characters
We just started using Office365 and, unbeknownst to us, you can't upload files containing certain characters to Sharepoint Online. The names of the files we are trying to upload cannot contain these characters: " # % & * : < > ? \ / { | } ~
We have all of the folders that we plan on uploading in a single directory called "to be uploaded to sharepoint"
Is there any way to search through this directory and all of the subfolders in that directory for files with those invalid characters in their names?
I tried using a command like this,
dir *#* *%* *^&* *{* *}* *~* /s /b > bad_file_names.txt
that I found on another website, but it just returns a list of all of the files and folders in that directory, regardless of whether or not their name contains an invalid character.
Any advice would be greatly appreciated.
We have all of the folders that we plan on uploading in a single directory called "to be uploaded to sharepoint"
Is there any way to search through this directory and all of the subfolders in that directory for files with those invalid characters in their names?
I tried using a command like this,
dir *#* *%* *^&* *{* *}* *~* /s /b > bad_file_names.txt
that I found on another website, but it just returns a list of all of the files and folders in that directory, regardless of whether or not their name contains an invalid character.
Any advice would be greatly appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Broadsound--
Put the files into a Folder, do not use any of the forbidden characters as the Folder's Name. Upload.
Put the files into a Folder, do not use any of the forbidden characters as the Folder's Name. Upload.
ASKER
Found an application online that does exactly what I need
Open in new window