We currently have a CIFS share hosted from a SAN device and are planning to move toward a case management system. The issue I'm having is a lot of the various files in our file share end with a trailing dot (.) and fail to upload.
I've been trying to get a script working that would keep file names the same but batch remove any trailing dots. I've been able to do this with various special characters using powershell.
We also have many sub folders that have a dot (.) in the middle of the folder name and would need to leave these alone.
Original File name: 20151101 Luis K. Abrishamian M.D..pdf
New file name: 20151101 Luis K. Abrishamian M.D.pdf