OneDrive — Dealing With Filename Issues
Microsoft OneDrive won't sync files which contain a variety of characters — the most common being # and %. So these characters need to be removed to allow them to sync.
One quick-and-dirty method to find and rename these files is:
- Open a command prompt and change to the folder in question.
for /r %x in (*.*) do echo ren "%x" "%~nx%~xx" >> list.txt
find "#" list.txt > go.bat
find "%" list.txt >> go.bat
- Open go.bat, edit the second part of each line, save the file and run it.