ivan wrote:Are you sure you're using the same OS as I do? I'm on Vista. XP does what you mention but Vista does not. I don't have a problem with the script. It was just a quick way to rename and then remove the suffix manually.
Yes, I'm running XP indeed. But then if that's a Vista thing you're facing there, I don't think XY can do anything about it...
ivan wrote:Well a file is more than just a filename and extension. There are other unique (and less unique but still hard to match) characteristics about a file
like md5 hash, size etc
Yeah, but that doesn't matter, it's not the same. Hash isn't a property or anything, as it must be calculated from the content, and size/dates are just properties, but all files (content, the actual data) are linked to using names, and you obviously can't have two exact names pointing to the same content, otherwise when using that name, there would be no way to tell which content should be accessed ! Filenames must be unique. And again, this isn't from XY, but your file system (FAT or more likely NTFS).
ivan wrote:I think allowing 2 files with the same name is no more ridiculous than being able to have a file with no name at all, which XYplorer currently makes possible in Vista. Yet it's not possible in XP. It's not even possible in Vista in IE.
Yeah, but I don't think you can do that either. Filename is actually name and extension, the whole thing, and a file must have one, one that is unique (in that folder).
Of course, naming a file ".ext" and showing only names (hiding extension) might result in a file without a name, which is kinda stupid yeah, but that's Windows. And, in reality, there would be a filename, ".ext"
Anyways, once again this isn't anything XY can alter in any ways, it doesn't make the rule when it comes to the file system, just obey them.
ivan wrote:Yes, but yours doesn't take into account the extension of the file. So, if there's a file called ABC.avi then when trying to rename XYZ.txt into ABC.txt it will result in XYZ.txt being renamed into ABC-01.txt since it think that a file with the same name is already there

hmm... are you sure? Cause both use Batch Rename, and so it works the same : extension are not included (unless /e is specified), so in both case it should be the same, since the regexreplace command should put inside $name the same thing that is in <curfolder> : the current folder's name.
I just tried here, and it works the same : both scripts rename XYZ.txt to ABC.txt when there's an ABC.avi present, they work the same for me, and I think this should be XY-only behavior, not OS-related...
