As of late, I have to do renaming that involves removing a string that ends with a dot and appears at either beginning or end of a file name. I would use this command to accomplish the desired:
However, if that string is at the end of the base name, XYplorer refuses to remove it. My suspicion is that this is because it thinks that removing that dot would alter the extension and since there is no "/e" switch present, it does not proceed.
Here comes the fun part...if that string appears at the end, it is always preceded by a dot. So, in the context of the above example, it would be ".text.remove.<ext>". Renaming manually works as the dot just before <ext> is replaced by the dot before the removed string. Thus, XYplorer baulking when a string is at the end is unwanted behaviour -- a file's extension isn't modified in any way. Can some smartness please be injected in this situation?